Author: Jakob Johnson Date: 2022-03-21T14:35:14-07:00 New Revision: d13752851a4e134708f365a5b238e8ff375accaa
URL: https://github.com/llvm/llvm-project/commit/d13752851a4e134708f365a5b238e8ff375accaa DIFF: https://github.com/llvm/llvm-project/commit/d13752851a4e134708f365a5b238e8ff375accaa.diff LOG: Fix e6c84f82b87576a57d1fa1c7e8c289d3d4fa7ab1 Failed buildbot: https://lab.llvm.org/buildbot/#/builders/68/builds/29250 Use toString() to consume the Error Added: Modified: lldb/unittests/Process/Linux/PerfTests.cpp Removed: ################################################################################ diff --git a/lldb/unittests/Process/Linux/PerfTests.cpp b/lldb/unittests/Process/Linux/PerfTests.cpp index f8467d7042ef7..3a1c08c11cdfb 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<uint64_t> 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) - _______________________________________________ lldb-commits mailing list lldb-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits