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-01-05 22:22:35 +01:00
parent 570a05be3e
commit f9ceaac9b7
No known key found for this signature in database
GPG Key ID: F3C1A0D9C1D65273
2 changed files with 3 additions and 2 deletions

View File

@ -222,6 +222,7 @@ scaffold/tests/a0-call-trunc-int
scaffold/tests/a0-math-divide-signed-negative
lib/tests/mes/90-abtod
lib/tests/mes/90-dtoab
lib/tests/posix/50-getenv
lib/tests/stdio/90-sprintf
"

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;
}