summaryrefslogtreecommitdiff
path: root/test/runtest
diff options
context:
space:
mode:
Diffstat (limited to 'test/runtest')
-rwxr-xr-xtest/runtest8
1 files changed, 3 insertions, 5 deletions
diff --git a/test/runtest b/test/runtest
index 9621e276e..4972aedd8 100755
--- a/test/runtest
+++ b/test/runtest
@@ -2766,9 +2766,8 @@ else { tests_exit(-1, "Command unrecognized in line $lineno: $_"); }
# Run the command, with stdin connected to a pipe, and write the stdin data
-# to it, with appropriate substitutions. If a starts with '>>> ', process it
-# via Perl's string eval().
-# If the command contains
+# to it, with appropriate substitutions. If a line ends with \NONL\, chop off
+# the terminating newline (and the \NONL\). If the command contains
# -DSERVER=server add "-server" to the command, where it will adjoin the name
# for the stderr file. See comment above about the use of -DSERVER.
@@ -2782,8 +2781,7 @@ while (<SCRIPT>)
$lineno++;
last if /^\*{4}\s*$/;
do_substitute($testno);
- s/^>>>\s(.*)\s*$/$1/ and $_ = eval "\"$1\"";
- print CMD;
+ if (/^(.*)\\NONL\\\s*$/) { print CMD $1; } else { print CMD; }
}
# For timeout tests, wait before closing the pipe; we expect a