aboutsummaryrefslogtreecommitdiffstats
path: root/test/lit.cfg
diff options
context:
space:
mode:
authorDaniel Dunbar <daniel@zuster.org>2013-08-21 22:26:44 +0000
committerDaniel Dunbar <daniel@zuster.org>2013-08-21 22:26:44 +0000
commit51a0b77cbfadb523c01cc787dea5ab7f2f296867 (patch)
tree3d8577163cb0bde5f906a7b79f0245256458abf5 /test/lit.cfg
parentf72bc792264941d1cdffe99775ce5e28bcdc51a4 (diff)
downloadexternal_llvm-51a0b77cbfadb523c01cc787dea5ab7f2f296867.zip
external_llvm-51a0b77cbfadb523c01cc787dea5ab7f2f296867.tar.gz
external_llvm-51a0b77cbfadb523c01cc787dea5ab7f2f296867.tar.bz2
[tests] Update fma3 check to work with Py3.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@188950 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/lit.cfg')
-rw-r--r--test/lit.cfg3
1 files changed, 2 insertions, 1 deletions
diff --git a/test/lit.cfg b/test/lit.cfg
index 13323b3..49cb6b1 100644
--- a/test/lit.cfg
+++ b/test/lit.cfg
@@ -297,7 +297,8 @@ if 'darwin' == sys.platform:
stdout = subprocess.PIPE)
except OSError:
print("Could not exec sysctl")
- if -1 != sysctl_cmd.stdout.read().find("hw.optional.fma: 1"):
+ result = sysctl_cmd.stdout.read().decode('ascii')
+ if -1 != result.find("hw.optional.fma: 1"):
config.available_features.add('fma3')
sysctl_cmd.wait()