[compiler-rt] [scudo] Add TEST_SKIP macro to skip the current test (PR #96192)
Fabio D'Urso via llvm-commits
llvm-commits at lists.llvm.org
Thu Jun 20 06:46:03 PDT 2024
https://github.com/fabio-d created https://github.com/llvm/llvm-project/pull/96192
None
>From 3a5e975e1c74fdda9f1393830c781ad7b38a7ac1 Mon Sep 17 00:00:00 2001
From: Fabio D'Urso <fdurso at google.com>
Date: Thu, 20 Jun 2024 15:10:15 +0200
Subject: [PATCH] [scudo] Add TEST_SKIP macro to skip the current test
---
compiler-rt/lib/scudo/standalone/tests/scudo_unit_test.h | 5 +++++
1 file changed, 5 insertions(+)
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.
More information about the llvm-commits
mailing list