Date: Mon, 8 Nov 2021 11:33:51 GMT From: Mariusz Zaborski <oshogbo@FreeBSD.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org Subject: git: 748a707fe609 - main - libc: fix the test Message-ID: <202111081133.1A8BXpe8060128@gitrepo.freebsd.org>
next in thread | raw e-mail | index | archive | help
The branch main has been updated by oshogbo: URL: https://cgit.FreeBSD.org/src/commit/?id=748a707fe6096874bb0ffbc37a59be9cbbfef1aa commit 748a707fe6096874bb0ffbc37a59be9cbbfef1aa Author: Mariusz Zaborski <oshogbo@FreeBSD.org> AuthorDate: 2021-11-08 11:30:51 +0000 Commit: Mariusz Zaborski <oshogbo@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);
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202111081133.1A8BXpe8060128>