diff options
author | antirez <antirez@gmail.com> | 2011-12-21 09:23:22 +0100 |
---|---|---|
committer | antirez <antirez@gmail.com> | 2012-01-07 12:52:32 +0100 |
commit | d4945b253bf46da317af054630b94466341a09c9 (patch) | |
tree | c7ebebd23c9328a5f9abb05ca8b88bf4609936a5 | |
parent | 53785789a0c7ad0c5b6b5125ba54393ef86490d3 (diff) | |
download | redis-d4945b253bf46da317af054630b94466341a09c9.tar.gz |
Redis test: when assertion fails print not just the expression but also expanded values in the error message.
-rw-r--r-- | tests/support/test.tcl | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/support/test.tcl b/tests/support/test.tcl index c875cfd80..e53d497bb 100644 --- a/tests/support/test.tcl +++ b/tests/support/test.tcl @@ -5,7 +5,7 @@ set ::tests_failed {} proc assert {condition} { if {![uplevel 1 expr $condition]} { - error "assertion:Expected condition '$condition' to be true" + error "assertion:Expected condition '$condition' to be true ([uplevel 1 [list subst -nocommands $condition]])" } } |