From 30c063710e4fa97b4015ef6d7b01adef0dcd8730 Mon Sep 17 00:00:00 2001 From: Ulrich Drepper Date: Tue, 2 Dec 2008 02:27:43 +0000 Subject: * stdlib/Makefile (tests): Add tst-unsetenv1. * stdlib/tst-unsetenv1.c: New file. --- stdlib/Makefile | 2 +- stdlib/tst-unsetenv1.c | 12 ++++++++++++ 2 files changed, 13 insertions(+), 1 deletion(-) create mode 100644 stdlib/tst-unsetenv1.c (limited to 'stdlib') diff --git a/stdlib/Makefile b/stdlib/Makefile index 1fe7f70..a69bdae 100644 --- a/stdlib/Makefile +++ b/stdlib/Makefile @@ -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 diff --git a/stdlib/tst-unsetenv1.c b/stdlib/tst-unsetenv1.c new file mode 100644 index 0000000..a2a760d --- /dev/null +++ b/stdlib/tst-unsetenv1.c @@ -0,0 +1,12 @@ +#include + +static int +do_test (void) +{ + clearenv (); + unsetenv ("FOO"); + return 0; +} + +#define TEST_FUNCTION do_test () +#include "../test-skeleton.c" -- cgit v1.1