From d13752851a4e134708f365a5b238e8ff375accaa Mon Sep 17 00:00:00 2001 From: Jakob Johnson Date: Mon, 21 Mar 2022 14:19:11 -0700 Subject: [PATCH] Fix e6c84f82b87576a57d1fa1c7e8c289d3d4fa7ab1 Failed buildbot: https://lab.llvm.org/buildbot/#/builders/68/builds/29250 Use toString() to consume the Error --- lldb/unittests/Process/Linux/PerfTests.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lldb/unittests/Process/Linux/PerfTests.cpp b/lldb/unittests/Process/Linux/PerfTests.cpp index f8467d7..3a1c08c 100644 --- a/lldb/unittests/Process/Linux/PerfTests.cpp +++ b/lldb/unittests/Process/Linux/PerfTests.cpp @@ -61,7 +61,7 @@ TEST(Perf, TscConversion) { // Skip the test if the conversion parameters aren't available. if (!params) - GTEST_SKIP() << params.takeError(); + GTEST_SKIP() << toString(params.takeError()); Expected tsc_before_sleep = readTsc(); sleep(SLEEP_SECS); @@ -69,9 +69,9 @@ TEST(Perf, TscConversion) { // Skip the test if we are unable to read the TSC value. if (!tsc_before_sleep) - GTEST_SKIP() << tsc_before_sleep.takeError(); + GTEST_SKIP() << toString(tsc_before_sleep.takeError()); if (!tsc_after_sleep) - GTEST_SKIP() << tsc_after_sleep.takeError(); + GTEST_SKIP() << toString(tsc_after_sleep.takeError()); std::chrono::nanoseconds converted_tsc_diff = params->ToWallTime(*tsc_after_sleep) - -- 2.7.4