X-Git-Url: https://git.saurik.com/redis.git/blobdiff_plain/f65c8f654fafb6cc86804d8f4ca9cdd1b6d978db..8ec9b03c6b6bf266c2d16afc0d968181c7baea85:/tests/support/test.tcl diff --git a/tests/support/test.tcl b/tests/support/test.tcl index c875cfd8..f66e54b8 100644 --- a/tests/support/test.tcl +++ b/tests/support/test.tcl @@ -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]])" } }