]> git.saurik.com Git - redis.git/blobdiff - tests/unit/other.tcl
initial support for failed tests summary at end of the test.
[redis.git] / tests / unit / other.tcl
index 20cefc6a0131492ecc62eca47f6e5f66c30fb521..dff577159c8c4f61a51afd88800b5a086dbd5762 100644 (file)
@@ -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}
+    }
 }