]> git.ipfire.org Git - thirdparty/make.git/commitdiff
* tests/scripts/features/vpathplus: Fix output for big-endian systems.
authorPaul Smith <psmith@gnu.org>
Sun, 22 Sep 2019 21:35:51 +0000 (17:35 -0400)
committerPaul Smith <psmith@gnu.org>
Sun, 22 Sep 2019 21:35:51 +0000 (17:35 -0400)
Our hashing algorithm gives different ordering on LE vs BE systems.
Patch from Dmitry Goncharov <dgoncharov@users.sf.net>.

tests/scripts/features/vpathplus

index b48571716cf818ee5d3dc6b9e815b135629413a2..978aecb85a7935921b02e36f984e51b50aebd018 100644 (file)
@@ -96,10 +96,12 @@ $make_name: *** [$makefile:13: notarget.b] Error 1
 
 push(@touchedfiles, "inter.a", "inter.b");
 
+my $be = pack("L", 1) eq pack("N", 1);
+my $intfiles = $be ? "inter.c inter.b" : "inter.b inter.c";
 $answer = "cat ${VP}inter.d > inter.c
 cat inter.c > inter.b 2>/dev/null || exit 1
 cat inter.b > inter.a
-rm inter.b inter.c
+rm $intfiles
 ";
 &compare_output($answer,&get_logfile(1));