]> git.ipfire.org Git - thirdparty/make.git/commit
tests: Don't convert \ to / when checking regex's
authorPaul Smith <psmith@gnu.org>
Sat, 5 Nov 2022 16:46:29 +0000 (12:46 -0400)
committerPaul Smith <psmith@gnu.org>
Sun, 13 Nov 2022 15:39:48 +0000 (10:39 -0500)
commitd71c0bb0cefd7b38716eac2947bc34f3c750a8b4
tree75c3fbae9cc353932183250cf44e2258e614d79f
parent090d99dd2da676074145f64bce940f3867c613f1
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.
tests/run_make_tests.pl
tests/test_driver.pl