Skip to content

Commit

Permalink
libc: fix the test
Browse files Browse the repository at this point in the history
Currently after cleaning the variables the environment will be always
set to the intEnviron as documented in __rebuild_environ.

Reported by:	lwhsu@, jenkins
  • Loading branch information
oshogbo committed Nov 8, 2021
1 parent 561cd74 commit 748a707
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/libc/tests/stdlib/clearenv_test.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 748a707

Please sign in to comment.