]> git.saurik.com Git - redis.git/blobdiff - tests/test_helper.tcl
Don't exit with error in tests temp file cleanup if there are no files to clean
[redis.git] / tests / test_helper.tcl
index 86286cdbdadd051fc9bc5a116637d0c291d4d73f..a40602f39c952bd3defcaf7b9963a77227c52ed7 100644 (file)
@@ -50,8 +50,8 @@ proc s {args} {
 }
 
 proc cleanup {} {
-    exec rm -rf {*}[glob tests/tmp/redis.conf.*]
-    exec rm -rf {*}[glob tests/tmp/server.*]
+    catch {exec rm -rf {*}[glob tests/tmp/redis.conf.*]}
+    catch {exec rm -rf {*}[glob tests/tmp/server.*]}
 }
 
 proc main {} {