diff options
Diffstat (limited to 'libc/test/UnitTest/Test.h')
-rw-r--r-- | libc/test/UnitTest/Test.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/libc/test/UnitTest/Test.h b/libc/test/UnitTest/Test.h index a5a2a3c..e70fc51 100644 --- a/libc/test/UnitTest/Test.h +++ b/libc/test/UnitTest/Test.h @@ -52,4 +52,13 @@ libc_errno = 0; \ } while (0) +// Some macro utility to append file names with LIBC_TEST macro's value to be +// used in stdio tests. +#undef STR +#undef EVAL_THEN_STR +#define STR(X) #X +#define EVAL_THEN_STR(X) STR(X) + +#define APPEND_LIBC_TEST(X) X "." EVAL_THEN_STR(LIBC_TEST) + #endif // LLVM_LIBC_TEST_UNITTEST_TEST_H |