From b5289dd61ad57ec7cb992e11b27399c2f9536410 Mon Sep 17 00:00:00 2001 From: Russel Winder Date: Mon, 22 Dec 2014 17:22:52 +0000 Subject: Replace UNIX specific code with cross-platform code. --- 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 bd761d1..b356411 100644 --- a/test/D/MixedDAndC/Common/common.py +++ b/test/D/MixedDAndC/Common/common.py @@ -29,8 +29,8 @@ __revision__ = "__FILE__ __REVISION__ __DATE__ __DEVELOPER__" import TestSCons -from os import uname from os.path import abspath, dirname +from platform import machine import sys sys.path.insert(1, abspath(dirname(__file__) + '/../../Support')) @@ -48,7 +48,7 @@ def testForTool(tool): test.run() - if uname()[4] not in ('x86_64',): + if machine() in ('i386',): test.fail_test('64-bit mode not compiled in' not in test.stdout()) test.pass_test() -- cgit v0.12