From 6a87411122374088eab75fc13c083e9e43b827fc Mon Sep 17 00:00:00 2001 From: William Deegan Date: Fri, 20 Feb 2015 14:27:56 -0800 Subject: Fix failing D tests which were checking for architecture to determine bit'ness instead of using platform.architecture() to check for 32bit --- test/D/MixedDAndC/Common/common.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/D/MixedDAndC/Common/common.py b/test/D/MixedDAndC/Common/common.py index b356411..176bdc1 100644 --- a/test/D/MixedDAndC/Common/common.py +++ b/test/D/MixedDAndC/Common/common.py @@ -30,7 +30,7 @@ __revision__ = "__FILE__ __REVISION__ __DATE__ __DEVELOPER__" import TestSCons from os.path import abspath, dirname -from platform import machine +from platform import architecture import sys sys.path.insert(1, abspath(dirname(__file__) + '/../../Support')) @@ -48,7 +48,7 @@ def testForTool(tool): test.run() - if machine() in ('i386',): + if architecture()[0] == '32bit': test.fail_test('64-bit mode not compiled in' not in test.stdout()) test.pass_test() -- cgit v0.12