summaryrefslogtreecommitdiff
path: root/tests/unit/other.tcl
diff options
context:
space:
mode:
authorantirez <antirez@gmail.com>2011-07-11 12:44:55 +0200
committerantirez <antirez@gmail.com>2011-07-11 12:44:55 +0200
commit04e2410d2dcfc14c938ac56877929e96baa99d28 (patch)
tree349705c743927bcc7937ed61072b8c7e4df2ff71 /tests/unit/other.tcl
parent30cf7be60c48c0f4931cd58bbd13201c17638b48 (diff)
downloadredis-04e2410d2dcfc14c938ac56877929e96baa99d28.tar.gz
initial support for failed tests summary at end of the test.
Diffstat (limited to 'tests/unit/other.tcl')
-rw-r--r--tests/unit/other.tcl7
1 files changed, 7 insertions, 0 deletions
diff --git a/tests/unit/other.tcl b/tests/unit/other.tcl
index 20cefc6a0..dff577159 100644
--- a/tests/unit/other.tcl
+++ b/tests/unit/other.tcl
@@ -242,4 +242,11 @@ start_server {tags {"other"}} {
test {Perform a final SAVE to leave a clean DB on disk} {
r save
} {OK}
+
+ if {$::force_failure} {
+ # This is used just for test suite development purposes.
+ test {Failing test} {
+ format err
+ } {ok}
+ }
}