[Tarantool-patches] [PATCH 1/2] test: update unit test lib to produce TAP-compliant output
Vladislav Shpilevoy
v.shpilevoy at tarantool.org
Thu Jun 4 01:52:08 MSK 2020
Thanks for the patch!
> diff --git a/test/unit/unit.h b/test/unit/unit.h
> index 43c301b28..27879ea98 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__); \
Since alignment is used, lets use it correctly. And align all
the slashes in the same way.
I mean footer and header slashes. Slightly screwed tabs inside
footer and inside header macros are git diff artifacts, no problem
here.
> +} while(0)
> +
> #if defined(__cplusplus)
> }
> #endif /* defined(__cplusplus) */
More information about the Tarantool-patches
mailing list