aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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()