[LTP] [PATCH 3/3] API: Cause GCC/Clang to blow up when TEST is used in the library

Petr Vorel pvorel@suse.cz
Mon Jun 28 16:52:44 CEST 2021


Hi Richie,

> +#if LTPLIB
> +#define TEST(SCALL) _Pragma("GCC error \"Do not use TEST macro in library\"")
> +#define TEST_VOID(SCALL) _Pragma("GCC error \"Do not use TEST_VOID macro in library\"")

It'd be nice to document "Do not use TEST() macro in library" in LTP Library API
Writing Guidelines [1].

Kind regards,
Petr

[1] https://github.com/linux-test-project/ltp/wiki/LTP-Library-API-Writing-Guidelines


More information about the ltp mailing list