[compiler-rt] [scudo] Add TEST_SKIP macro to skip the current test (PR #96192)
via llvm-commits
llvm-commits at lists.llvm.org
Thu Jun 20 06:46:31 PDT 2024
llvmbot wrote:
<!--LLVM PR SUMMARY COMMENT-->
@llvm/pr-subscribers-compiler-rt-sanitizer
Author: Fabio D'Urso (fabio-d)
<details>
<summary>Changes</summary>
---
Full diff: https://github.com/llvm/llvm-project/pull/96192.diff
1 Files Affected:
- (modified) compiler-rt/lib/scudo/standalone/tests/scudo_unit_test.h (+5)
``````````diff
diff --git a/compiler-rt/lib/scudo/standalone/tests/scudo_unit_test.h b/compiler-rt/lib/scudo/standalone/tests/scudo_unit_test.h
index 4283416435ba0..f8b658c937889 100644
--- a/compiler-rt/lib/scudo/standalone/tests/scudo_unit_test.h
+++ b/compiler-rt/lib/scudo/standalone/tests/scudo_unit_test.h
@@ -11,9 +11,14 @@
#if SCUDO_FUCHSIA
#include <zxtest/zxtest.h>
using Test = ::zxtest::Test;
+#define TEST_SKIP(message) ZXTEST_SKIP(message)
#else
#include "gtest/gtest.h"
using Test = ::testing::Test;
+#define TEST_SKIP(message) \
+ do { \
+ GTEST_SKIP() << message; \
+ } while (0)
#endif
// If EXPECT_DEATH isn't defined, make it a no-op.
``````````
</details>
https://github.com/llvm/llvm-project/pull/96192
More information about the llvm-commits
mailing list