From 4a92b442ddddf11e3d4f618919784e117dd47719 Mon Sep 17 00:00:00 2001 From: Moritz Bunkus Date: Thu, 8 Mar 2018 20:41:26 +0100 Subject: [PATCH] test runner: avoid implicit conversion from nil to String --- tests/test.d/simple_test.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/test.d/simple_test.rb b/tests/test.d/simple_test.rb index d2b7f0b1f..59090682d 100644 --- a/tests/test.d/simple_test.rb +++ b/tests/test.d/simple_test.rb @@ -76,7 +76,7 @@ class SimpleTest end def clean_tmp - File.unlink(@tmp) if File.exists?(@tmp) && (ENV["KEEP_TMPFILES"] != "1") + File.unlink(@tmp) if @tmp && File.exists?(@tmp) && !ENV["KEEP_TMPFILES"].nil? && (ENV["KEEP_TMPFILES"] != "1") @tmp = nil end