From 96ba68b2e9b39e09a960558c61718f163186e2c5 Mon Sep 17 00:00:00 2001 From: Moritz Bunkus Date: Tue, 11 Jan 2005 08:18:34 +0000 Subject: [PATCH] Only delete a file if it actually exists. --- tests/run.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/run.rb b/tests/run.rb index 85de43361..6566861f2 100755 --- a/tests/run.rb +++ b/tests/run.rb @@ -66,7 +66,7 @@ class Test def hash_tmp(erase = true) output = hash_file(@tmp) if (erase) - File.unlink(@tmp) + File.unlink(@tmp) if (File.exists?(@tmp)) @debug_commands.push("rm #{@tmp}") @tmp = nil end