xref: /openbsd-src/gnu/llvm/compiler-rt/lib/scudo/standalone/tests/scudo_unit_test.h (revision 1a8dbaac879b9f3335ad7fb25429ce63ac1d6bac)
1 //===-- scudo_unit_test.h ---------------------------------------*- C++ -*-===//
2 //
3 // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
4 // See https://llvm.org/LICENSE.txt for license information.
5 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
6 //
7 //===----------------------------------------------------------------------===//
8 
9 #include "platform.h"
10 
11 #if SCUDO_FUCHSIA
12 #include <zxtest/zxtest.h>
13 #else
14 #include "gtest/gtest.h"
15 #endif
16 
17 // If EXPECT_DEATH isn't defined, make it a no-op.
18 #ifndef EXPECT_DEATH
19 #define EXPECT_DEATH(X, Y)                                                     \
20   do {                                                                         \
21   } while (0)
22 #endif
23 
24 // If EXPECT_STREQ isn't defined, define our own simple one.
25 #ifndef EXPECT_STREQ
26 #define EXPECT_STREQ(X, Y) EXPECT_EQ(strcmp(X, Y), 0)
27 #endif
28 
29 extern bool UseQuarantine;
30