From: Paul Smith Date: Sun, 22 Sep 2019 21:35:51 +0000 (-0400) Subject: * tests/scripts/features/vpathplus: Fix output for big-endian systems. X-Git-Tag: 4.2.92~8 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=b0eab8ecb92577819519e9f401d1115ffbea17c1;p=thirdparty%2Fmake.git * tests/scripts/features/vpathplus: Fix output for big-endian systems. Our hashing algorithm gives different ordering on LE vs BE systems. Patch from Dmitry Goncharov . --- diff --git a/tests/scripts/features/vpathplus b/tests/scripts/features/vpathplus index b4857171..978aecb8 100644 --- a/tests/scripts/features/vpathplus +++ b/tests/scripts/features/vpathplus @@ -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));