[libc-commits] [libc] [libc] Allow hermetic timing if the `clock` function is built (PR #71092)

via libc-commits libc-commits at lists.llvm.org
Thu Nov 2 12:31:36 PDT 2023


================
@@ -147,7 +140,7 @@ int Test::runTests(const char *TestFilter) {
       break;
     case RunContext::RunResult::Pass:
       tlog << GREEN << "[       OK ] " << RESET << TestName;
-#if __STDC_HOSTED__ || defined(LIBC_TARGET_ARCH_IS_GPU)
+#ifdef LIBC_TEST_USE_CLOCK
----------------
michaelrj-google wrote:

This change looks fine to me, though in future I think it would be useful to have it report the time regardless of if the test passes or fails.

https://github.com/llvm/llvm-project/pull/71092


More information about the libc-commits mailing list