]> git.saurik.com Git - redis.git/blobdiff - tests/support/test.tcl
in kill_server send the signal once, then wait for up to 5sec before sending lethal...
[redis.git] / tests / support / test.tcl
index c875cfd8030755c752f9aa72a9aa034419393512..f66e54b87cfe96b6d584aebb837d1d01e1178096 100644 (file)
@@ -4,8 +4,8 @@ set ::num_failed 0
 set ::tests_failed {}
 
 proc assert {condition} {
-    if {![uplevel 1 expr $condition]} {
-        error "assertion:Expected condition '$condition' to be true"
+    if {![uplevel 1 [list expr $condition]]} {
+        error "assertion:Expected condition '$condition' to be true ([uplevel 1 [list subst -nocommands $condition]])"
     }
 }