[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
vpathplus test 2 patch
From: |
Dmitry Goncharov |
Subject: |
vpathplus test 2 patch |
Date: |
Tue, 10 Sep 2019 20:42:13 -0400 |
The new hashing mechanism hashes differently on big vs little endian.
This makes vpathplus test 2 fail, because the order of intermediate files
inter.b and inter.c is now dependent on endiannes.
regards, Dmitry
diff --git a/tests/scripts/features/vpathplus b/tests/scripts/features/vpathplus
index 8e723fe..3ab9c05 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));
- vpathplus test 2 patch,
Dmitry Goncharov <=