projects
/
platform
/
upstream
/
llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
898d0d3
)
[tests] Update fma3 check to work with Py3.
author
Daniel Dunbar
<daniel@zuster.org>
Wed, 21 Aug 2013 22:26:44 +0000
(22:26 +0000)
committer
Daniel Dunbar
<daniel@zuster.org>
Wed, 21 Aug 2013 22:26:44 +0000
(22:26 +0000)
llvm-svn: 188950
llvm/test/lit.cfg
patch
|
blob
|
history
diff --git
a/llvm/test/lit.cfg
b/llvm/test/lit.cfg
index
13323b3
..
49cb6b1
100644
(file)
--- a/
llvm/test/lit.cfg
+++ b/
llvm/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()