summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorHeiko Schlittermann (HS12) <hs@schlittermann.de>2015-05-06 23:16:59 +0200
committerHeiko Schlittermann (HS12) <hs@schlittermann.de>2015-05-06 23:16:59 +0200
commit2f8e6f3087227b9d30bc71862ff9f1cc3355f52d (patch)
tree2f039fe2e9408d2685ae57007d467b8b44038529 /test
parent4a452c432a063c45bca4079acb5f654cb0ec5d6d (diff)
Testsuite: Fix the [U]pdate for new testcases
Diffstat (limited to 'test')
-rwxr-xr-xtest/runtest7
1 files changed, 6 insertions, 1 deletions
diff --git a/test/runtest b/test/runtest
index f0a633d61..f215bf4de 100755
--- a/test/runtest
+++ b/test/runtest
@@ -20,6 +20,7 @@ use Socket;
use Time::Local;
use Cwd;
use File::Basename;
+use if $ENV{DEBUG} && $ENV{DEBUG} =~ /\bruntest\b/ => ('Smart::Comments' => '####');
# Start by initializing some global variables
@@ -322,6 +323,8 @@ my($extra) = $_[1];
my($yield) = 0;
my(@saved) = ();
+local $_;
+
open(IN, "$file") || tests_exit(-1, "Failed to open $file: $!");
my($is_log) = $file =~ /log/;
@@ -1069,7 +1072,7 @@ return $yield;
# Arguments: [0] the prompt string
# [1] if there is a U in the prompt and $force_update is true
# [2] if there is a C in the prompt and $force_continue is true
-# Returns: nothing (it sets $_)
+# Returns: returns the answer
sub interact{
print $_[0];
@@ -1178,6 +1181,8 @@ if (! -e $sf_current)
}
}
+#### $_
+
# Control reaches here if either (a) there is a saved file ($sf), or (b) there
# was a request to create a saved file. First, create the munged file from any
# data that does exist.