diff options
| author | Daniel Schemmel <daniel@schemmel.net> | 2023-06-28 23:21:39 +0000 |
|---|---|---|
| committer | Cristian Cadar <c.cadar@imperial.ac.uk> | 2023-07-10 16:53:14 +0200 |
| commit | 125fb26ceae09da92d17505071cad881ad31ba88 (patch) | |
| tree | 9230b368910a6e271e554ea0944fbca4f15216fd /unittests/KDAlloc/reuse.cpp | |
| parent | 3034ae5878f2b1f3216ab1a7d2706edf27c8ae4c (diff) | |
| download | klee-125fb26ceae09da92d17505071cad881ad31ba88.tar.gz | |
Simplify KDAlloc tests
Diffstat (limited to 'unittests/KDAlloc/reuse.cpp')
| -rw-r--r-- | unittests/KDAlloc/reuse.cpp | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/unittests/KDAlloc/reuse.cpp b/unittests/KDAlloc/reuse.cpp index d886a9d6..e6c79ddc 100644 --- a/unittests/KDAlloc/reuse.cpp +++ b/unittests/KDAlloc/reuse.cpp @@ -19,11 +19,7 @@ #include <iostream> #include <unordered_set> -#if defined(USE_GTEST_INSTEAD_OF_MAIN) -int reuse_test() { -#else -int main() { -#endif +void reuse_test() { { static const std::size_t size = 8; static const std::uint32_t quarantine = 0; @@ -131,4 +127,6 @@ int main() { TEST(KDAllocDeathTest, Reuse) { ASSERT_EXIT(reuse_test(), ::testing::ExitedWithCode(0), ""); } +#else +int main() { reuse_test(); } #endif |
