diff options
Diffstat (limited to 'testsuite/runtest.all/utils.test')
-rw-r--r-- | testsuite/runtest.all/utils.test | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/testsuite/runtest.all/utils.test b/testsuite/runtest.all/utils.test index 201280f..de8c809 100644 --- a/testsuite/runtest.all/utils.test +++ b/testsuite/runtest.all/utils.test @@ -88,6 +88,19 @@ if [info exists env(TESTRUN)] { untested "getenv, get an environment variable" } +# Test unsetenv: +# +if [info exists env(TESTRUN)] { + unsetenv TESTRUN + if [info exists env(TESTRUN)] { + fail "unsetenv, unset an environment variable" + } else { + pass "unsetenv, unset an environment variable" + } +} else { + untested "unsetenv, unset an environment variable" +} + # Test 'which' using a relative path. # if {[which ./config.status] != 0} { |