[LTP] [PATCH 2/3] confstr01: Update to X/Open 7 (POSIX 2008)

Petr Vorel pvorel@suse.cz
Wed Apr 6 08:30:52 CEST 2022


Hi,

I tested it last night on uclibc, it does not have _CS_V7_ENV, therefore it must
be wrap with #ifdef.

Kind regards,
Petr

diff --git testcases/kernel/syscalls/confstr/confstr01.c testcases/kernel/syscalls/confstr/confstr01.c
index f41214add8..ed540cf4da 100644
--- testcases/kernel/syscalls/confstr/confstr01.c
+++ testcases/kernel/syscalls/confstr/confstr01.c
@@ -46,7 +46,9 @@ static struct test_case_t {
 	{ _CS_POSIX_V7_THREADS_LDFLAGS, "POSIX_V7_THREADS_LDFLAGS" },
 #endif
 	{ _CS_POSIX_V7_WIDTH_RESTRICTED_ENVS, "POSIX_V7_WIDTH_RESTRICTED_ENVS" },
+#ifdef _CS_V7_ENV
 	{ _CS_V7_ENV, "V7_ENV" },
+#endif
 };
 
 static void run(unsigned int i)



More information about the ltp mailing list