From 748a707fe6096874bb0ffbc37a59be9cbbfef1aa Mon Sep 17 00:00:00 2001 From: Mariusz Zaborski Date: Mon, 8 Nov 2021 12:30:51 +0100 Subject: [PATCH] libc: fix the test Currently after cleaning the variables the environment will be always set to the intEnviron as documented in __rebuild_environ. Reported by: lwhsu@, jenkins --- lib/libc/tests/stdlib/clearenv_test.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/libc/tests/stdlib/clearenv_test.c b/lib/libc/tests/stdlib/clearenv_test.c index 0c705bfece1..40bd7f2ba0f 100644 --- a/lib/libc/tests/stdlib/clearenv_test.c +++ b/lib/libc/tests/stdlib/clearenv_test.c @@ -136,7 +136,7 @@ ATF_TC_BODY(clearenv__environ_null, tc) { ATF_CHECK(clearenv() == 0); - ATF_CHECK(environ == NULL); + ATF_CHECK(environ != NULL); } ATF_TC_WITHOUT_HEAD(clearenv__putenv_vars);