The branch main has been updated by oshogbo:

URL: 
https://cgit.FreeBSD.org/src/commit/?id=748a707fe6096874bb0ffbc37a59be9cbbfef1aa

commit 748a707fe6096874bb0ffbc37a59be9cbbfef1aa
Author:     Mariusz Zaborski <osho...@freebsd.org>
AuthorDate: 2021-11-08 11:30:51 +0000
Commit:     Mariusz Zaborski <osho...@freebsd.org>
CommitDate: 2021-11-08 11:35:03 +0000

    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 0c705bfece1e..40bd7f2ba0f5 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);

Reply via email to