* 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 <dgoncharov@users.sf.net>.
This commit is contained in:
Paul Smith 2019-09-22 17:35:51 -04:00
parent f84821b249
commit b0eab8ecb9

View 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));