test: 50-getenv: Test PATH, allow to fail.

* lib/tests/posix/50-getenv.c (main): Test PATH.
* build-aux/check-mescc.sh (broken): Add 50-getenv.
This commit is contained in:
Jan Nieuwenhuizen 2019-03-02 22:22:35 +01:00
parent 90b384def3
commit d93b19f41f
No known key found for this signature in database
GPG key ID: F3C1A0D9C1D65273
2 changed files with 3 additions and 2 deletions

View file

@ -211,6 +211,7 @@ scaffold/tests/a1-global-no-clobber
"
broken="$broken
lib/tests/posix/50-getenv
scaffold/tests/17-compare-unsigned-char-le
scaffold/tests/17-compare-unsigned-short-le
scaffold/tests/66-local-char-array

View file

@ -1,6 +1,6 @@
/* -*-comment-start: "//";comment-end:""-*-
* GNU Mes --- Maxwell Equations of Software
* Copyright © 2018 Jan (janneke) Nieuwenhuizen <janneke@gnu.org>
* Copyright © 2018,2019 Jan (janneke) Nieuwenhuizen <janneke@gnu.org>
*
* This file is part of GNU Mes.
*
@ -25,7 +25,7 @@ int
main (int argc, char const *argv[])
{
eputs ("test:getenv\n");
if (getenv ("SHELL") == 0)
if (getenv ("PATH") == 0)
return 1;
return 0;
}