diff options
author | Paul Smith <psmith@gnu.org> | 2022-11-05 12:46:29 -0400 |
---|---|---|
committer | Paul Smith <psmith@gnu.org> | 2022-11-13 10:39:48 -0500 |
commit | d71c0bb0cefd7b38716eac2947bc34f3c750a8b4 (patch) | |
tree | 75c3fbae9cc353932183250cf44e2258e614d79f /tests/run_make_tests.pl | |
parent | 090d99dd2da676074145f64bce940f3867c613f1 (diff) | |
download | make-git-d71c0bb0cefd7b38716eac2947bc34f3c750a8b4.tar.gz |
tests: Don't convert \ to / when checking regex's
When tests compare the output they will try converting backslashes
to slashes to see if that works. When we compare using regex's,
we can't do that because backslashes can escape special characters.
* tests/test_driver.pl (compare_output): Clean up this function.
(compare_answer_vms) [VMS]: Comparing answers on VMS is complex;
move all of it into its own function returning 0/1.
(compare_answer): A new function to compare answers: return 0/1.
Remember the CRLF->LF conversion forever; only check \ -> / when
we compare strings, not regex's.
Diffstat (limited to 'tests/run_make_tests.pl')
-rw-r--r-- | tests/run_make_tests.pl | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/tests/run_make_tests.pl b/tests/run_make_tests.pl index 70dd1821..5fc37595 100644 --- a/tests/run_make_tests.pl +++ b/tests/run_make_tests.pl @@ -185,7 +185,6 @@ sub subst_make_string s/#PERL#/$perl_name/g; s/#PWD#/$cwdpath/g; s/#WORK#/$workdir/g; - # If we're using a shell s/#HELPER#/$perl_name $helptool/g; return $_; } |