summaryrefslogtreecommitdiffstats
path: root/tests/httpTest.tcl
diff options
context:
space:
mode:
Diffstat (limited to 'tests/httpTest.tcl')
-rw-r--r--tests/httpTest.tcl6
1 files changed, 5 insertions, 1 deletions
diff --git a/tests/httpTest.tcl b/tests/httpTest.tcl
index 326b361..4345845 100644
--- a/tests/httpTest.tcl
+++ b/tests/httpTest.tcl
@@ -68,7 +68,11 @@ proc http::Log {args} {
}
return
}
-
+# The http::Log routine above needs the variable ::httpTest::testOptions
+# Set up to destroy it when that variable goes away.
+trace add variable ::httpTest::testOptions unset {apply {args {
+ proc ::http::Log args {}
+}}}
# Called by http::Log (the "testing" version) to record logs for later analysis.