From 5ea97826b4d2669a07ae55432348d6997d426d4f Mon Sep 17 00:00:00 2001 From: Filipp Zhinkin Date: Sat, 23 Mar 2024 14:51:25 +0100 Subject: [PATCH] Consider xctracenorm unsupported if there's no xctrace or PMC is unavailable --- integration/build.gradle.kts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/integration/build.gradle.kts b/integration/build.gradle.kts index 867d4f0..4c8b956 100644 --- a/integration/build.gradle.kts +++ b/integration/build.gradle.kts @@ -34,7 +34,8 @@ val hasPMC: Boolean by lazy { commandLine("sysctl", "-n", "hw.cpufamily") standardOutput = out } - res.exitValue == 0 && out.toByteArray().decodeToString().lineSequence().first() != "0" + val value = out.toByteArray().decodeToString().lineSequence().first() + res.exitValue == 0 && value.toInt() != 0 } catch (e: ExecException) { false }