mirror of
https://sourceware.org/git/glibc.git
synced 2025-12-24 17:51:17 +03:00
2.5-18.1
This commit is contained in:
18
stdlib/tst-putenv.c
Normal file
18
stdlib/tst-putenv.c
Normal file
@@ -0,0 +1,18 @@
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
|
||||
static int
|
||||
do_test (void)
|
||||
{
|
||||
char *p = getenv ("SOMETHING_NOBODY_USES");
|
||||
if (p == NULL)
|
||||
{
|
||||
puts ("envvar not defined");
|
||||
return 1;
|
||||
}
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
#define TEST_FUNCTION do_test ()
|
||||
#include "../test-skeleton.c"
|
||||
Reference in New Issue
Block a user