[Tools 1/2] winetest/gather: Don't issue an error if outdated is already gone.

Francois Gouget fgouget at codeweavers.com
Mon Jun 12 04:15:12 CDT 2017


Signed-off-by: Francois Gouget <fgouget at codeweavers.com>
---
 winetest/gather | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/winetest/gather b/winetest/gather
index 2886bc51..fe1dfb42 100755
--- a/winetest/gather
+++ b/winetest/gather
@@ -821,7 +821,8 @@ if (!rename "$filename.new", "$filename")
 write_totals(\@groups);
 
 DONE:
-if (!unlink $outdated) {
+if (!unlink $outdated and !$!{ENOENT})
+{
     error("unable to unlink '$outdated': $!\n");
     exit 3;
 }
-- 
2.11.0




More information about the wine-patches mailing list