]> granicus.if.org Git - libevent/commitdiff
Fix test.sh on freebsd
authorNick Mathewson <nickm@torproject.org>
Sat, 8 May 2010 23:56:25 +0000 (19:56 -0400)
committerNick Mathewson <nickm@torproject.org>
Sat, 8 May 2010 23:56:25 +0000 (19:56 -0400)
It turns out that in all conformant shells, "unset FOO" removes FOO
both from the shell's variables and from the exported environment.
(I've tested this on msys, opensolaris, linux, osx, and freebsd.)

And in nearly every shell I can find, "unset FOO; export FOO" does
the same as unset FOO... except in my FreeBSD VM, where the "export
FOO" sets the exported value of FOO equal to "".  This broke test.sh
for us.

The fix is simple: remove the needless exports!

test/test.sh

index 0bcc22727c7be8f32e5415aa2ae4a0ac50aed452..e132fc381ba7f21ddae4034cedfda7fe5e23ff48 100755 (executable)
@@ -91,42 +91,35 @@ announce "Running tests:"
 # Need to do this by hand?
 setup
 unset EVENT_NOKQUEUE
-export EVENT_NOKQUEUE
 announce "KQUEUE"
 run_tests
 
 setup
 unset EVENT_NODEVPOLL
-export EVENT_NODEVPOLL
 announce "DEVPOLL"
 run_tests
 
 setup
 unset EVENT_NOPOLL
-export EVENT_NOPOLL
 announce "POLL"
 run_tests
 
 setup
 unset EVENT_NOSELECT
-export EVENT_NOSELECT
 announce "SELECT"
 run_tests
 
 setup
 unset EVENT_NOEPOLL
-export EVENT_NOEPOLL
 announce "EPOLL"
 run_tests
 
 setup
 unset EVENT_NOEVPORT
-export EVENT_NOEVPORT
 announce "EVPORT"
 run_tests
 
 setup
 unset EVENT_NOWIN32
-export EVENT_NOWIN32
 announce "WIN32"
 run_tests