From 3d9e05b17498c8b982a8d34031341fbe9b6dbb0e Mon Sep 17 00:00:00 2001 From: Nick Mathewson Date: Sat, 8 May 2010 19:56:25 -0400 Subject: [PATCH] Fix test.sh on freebsd 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 | 7 ------- 1 file changed, 7 deletions(-) diff --git a/test/test.sh b/test/test.sh index 0bcc2272..e132fc38 100755 --- a/test/test.sh +++ b/test/test.sh @@ -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 -- 2.50.1