summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--tests/pkgIndex.tcl5
-rw-r--r--tests/tcltests.tcl2
2 files changed, 3 insertions, 4 deletions
diff --git a/tests/pkgIndex.tcl b/tests/pkgIndex.tcl
index 854b943..9d89277 100644
--- a/tests/pkgIndex.tcl
+++ b/tests/pkgIndex.tcl
@@ -1,6 +1,3 @@
#! /usr/bin/env tclsh
-package ifneeded tcltests 0.1 "
- source [list $dir/tcltests.tcl]
- package provide tcltests 0.1
-"
+package ifneeded tcltests 0.1 [list source $dir/tcltests.tcl]
diff --git a/tests/tcltests.tcl b/tests/tcltests.tcl
index 74d1b40..cfd3ea3 100644
--- a/tests/tcltests.tcl
+++ b/tests/tcltests.tcl
@@ -9,3 +9,5 @@ testConstraint fileevent [llength [info commands fileevent]]
testConstraint thread [
expr {0 == [catch {package require Thread 2.7-}]}]
testConstraint notValgrind [expr {![testConstraint valgrind]}]
+
+package provide tcltests 0.1