[compiler-rt] 6413872 - [GWP-ASan] Fix test to work with Fuchsia's zxtest
Alex Brachet via llvm-commits
llvm-commits at lists.llvm.org
Wed Jan 11 15:16:56 PST 2023
Author: Alex Brachet
Date: 2023-01-11T23:16:19Z
New Revision: 64138725e4cf0ab5e3f9c0dba38e11ce3d3b4017
URL: https://github.com/llvm/llvm-project/commit/64138725e4cf0ab5e3f9c0dba38e11ce3d3b4017
DIFF: https://github.com/llvm/llvm-project/commit/64138725e4cf0ab5e3f9c0dba38e11ce3d3b4017.diff
LOG: [GWP-ASan] Fix test to work with Fuchsia's zxtest
Added:
Modified:
compiler-rt/lib/gwp_asan/tests/harness.h
Removed:
################################################################################
diff --git a/compiler-rt/lib/gwp_asan/tests/harness.h b/compiler-rt/lib/gwp_asan/tests/harness.h
index 2c8187ca873f..e6be68cf74b3 100644
--- a/compiler-rt/lib/gwp_asan/tests/harness.h
+++ b/compiler-rt/lib/gwp_asan/tests/harness.h
@@ -14,9 +14,11 @@
#if defined(__Fuchsia__)
#include <zxtest/zxtest.h>
using Test = ::zxtest::Test;
+template <typename T> using TestWithParam = ::zxtest::TestWithParam<T>;
#else
#include "gtest/gtest.h"
using Test = ::testing::Test;
+template <typename T> using TestWithParam = ::zxtest::TestWithParam<T>;
#endif
#include "gwp_asan/guarded_pool_allocator.h"
@@ -82,7 +84,7 @@ class CustomGuardedPoolAllocator : public Test {
};
class BacktraceGuardedPoolAllocator
- : public testing::TestWithParam</* Recoverable */ bool> {
+ : public TestWithParam</* Recoverable */ bool> {
public:
void SetUp() override {
gwp_asan::options::Options Opts;
More information about the llvm-commits
mailing list