[Tarantool-patches] [PATCH v2 1/3] test: update unit test lib to produce TAP-compliant output

Vladislav Shpilevoy v.shpilevoy at tarantool.org
Tue Jun 9 02:55:54 MSK 2020


Hi! Thanks for the patch!

> diff --git a/test/unit/unit.h b/test/unit/unit.h
> index 43c301b28..b0f9e7f9f 100644
> --- a/test/unit/unit.h
> +++ b/test/unit/unit.h
> @@ -129,6 +126,16 @@ int check_plan(void);
>  	}						\
>  }
>  
> +#define header() do {                                   \
> +        _space(stdout);                                 \
> +        printf("# *** %s ***\n", __func__);             \
> +} while(0)
> +
> +#define footer() do {                                   \
> +        _space(stdout);                                 \
> +        printf("# *** %s: done ***\n", __func__);       \

All the other alignments use tabs. Lets use tabs here too.

> +} while(0)
> +
>  #if defined(__cplusplus)
>  }
>  #endif /* defined(__cplusplus) */


More information about the Tarantool-patches mailing list