From 4aca9276dfef3ce6d54718351c0a3f80896228ff Mon Sep 17 00:00:00 2001 From: sebres Date: Mon, 14 Jan 2019 19:51:02 +0000 Subject: normalize package provide for tcltests 0.1 (declaration moved from pkgIndex.tcl to package source) --- tests/pkgIndex.tcl | 5 +---- tests/tcltests.tcl | 2 ++ 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 -- cgit v0.12