diff mbox

[1/5] fix test for cast to bool on 32bit machines

Message ID 20170327141918.61151-2-luc.vanoostenryck@gmail.com (mailing list archive)
State Mainlined, archived
Headers show

Commit Message

Luc Van Oostenryck March 27, 2017, 2:19 p.m. UTC
The result implicitely depended on longs and/or pointers
being 64 bit or just bigger than ints.

Fix this by running the test with the -m64 flag.

Signed-off-by: Luc Van Oostenryck <luc.vanoostenryck@gmail.com>
---
 validation/bool-cast-explicit.c | 2 +-
 validation/bool-cast-implicit.c | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)
diff mbox

Patch

diff --git a/validation/bool-cast-explicit.c b/validation/bool-cast-explicit.c
index 6f9c4d461..4e3c2b7ce 100644
--- a/validation/bool-cast-explicit.c
+++ b/validation/bool-cast-explicit.c
@@ -16,7 +16,7 @@  static _Bool fres(le16 a) { return (_Bool)a; }
 
 /*
  * check-name: bool-cast-explicit
- * check-command: test-linearize $file
+ * check-command: test-linearize -m64 $file
  * check-output-ignore
  * check-output-excludes: cast\\.
  *
diff --git a/validation/bool-cast-implicit.c b/validation/bool-cast-implicit.c
index 0e0e69a45..ee8b705b9 100644
--- a/validation/bool-cast-implicit.c
+++ b/validation/bool-cast-implicit.c
@@ -16,7 +16,7 @@  static _Bool fres(le16 a) { return a; }
 
 /*
  * check-name: bool-cast-implicit
- * check-command: test-linearize $file
+ * check-command: test-linearize -m64 $file
  * check-output-ignore
  * check-output-excludes: cast\\.
  *