Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
* stdlib/Makefile (tests): Add tst-unsetenv1.
	* stdlib/tst-unsetenv1.c: New file.
  • Loading branch information
Ulrich Drepper committed Dec 2, 2008
1 parent 1fa7ae0 commit 30c0637
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 1 deletion.
2 changes: 2 additions & 0 deletions ChangeLog
Expand Up @@ -2,6 +2,8 @@

* stdlib/setenv.c (unsetenv): Don't search environment if it does
not exist.
* stdlib/Makefile (tests): Add tst-unsetenv1.
* stdlib/tst-unsetenv1.c: New file.

2008-11-29 Ulrich Drepper <drepper@redhat.com>

Expand Down
2 changes: 1 addition & 1 deletion stdlib/Makefile
Expand Up @@ -69,7 +69,7 @@ tests := tst-strtol tst-strtod testmb testrand testsort testdiv \
test-a64l tst-qsort tst-system testmb2 bug-strtod2 \
tst-atof1 tst-atof2 tst-strtod2 tst-strtod3 tst-rand48-2 \
tst-makecontext tst-strtod4 tst-strtod5 tst-qsort2 \
tst-makecontext2 tst-strtod6
tst-makecontext2 tst-strtod6 tst-unsetenv1

include ../Makeconfig

Expand Down
12 changes: 12 additions & 0 deletions stdlib/tst-unsetenv1.c
@@ -0,0 +1,12 @@
#include <stdlib.h>

static int
do_test (void)
{
clearenv ();
unsetenv ("FOO");
return 0;
}

#define TEST_FUNCTION do_test ()
#include "../test-skeleton.c"

0 comments on commit 30c0637

Please sign in to comment.