[exim-cvs] Testsuite: tidy use of undef'd var

Startseite
Nachricht löschen
Nachricht beantworten
Autor: Exim Git Commits Mailing List
Datum:  
To: exim-cvs
Betreff: [exim-cvs] Testsuite: tidy use of undef'd var
Gitweb: https://git.exim.org/exim.git/commitdiff/da1702c0e2fd5b5b4300bbae3f21db7ac5d74198
Commit:     da1702c0e2fd5b5b4300bbae3f21db7ac5d74198
Parent:     35d78f064b4e9f3ec28481e5e842c33a68171721
Author:     Andrew Aitchison <exim@???>
AuthorDate: Fri Mar 17 12:19:48 2023 +0000
Committer:  Jeremy Harris <jgh146exb@???>
CommitDate: Fri Mar 17 12:19:48 2023 +0000


    Testsuite: tidy use of undef'd var
---
 test/runtest | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)


diff --git a/test/runtest b/test/runtest
index 64a8e7f37..8d96e13bd 100755
--- a/test/runtest
+++ b/test/runtest
@@ -4072,7 +4072,7 @@ DIR: for (my $i = 0; $i < @test_dirs; $i++)
     if (!defined $1 && $? != 0 || defined $1 && $? == 0) {
       $wantthis = 0;
       unlink("$parm_cwd/test-config");
-      $_ = "$1feature $2";
+      $_ = $1 || "" . "feature $2";
       last;
     }
     unlink("$parm_cwd/test-config");