blob: 5d5a9548537d78f88d1b344117b6c114d613dca1 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
|
From 68ef0eb5691aa7b9d634b4d1af85f9d66fdfc06e Mon Sep 17 00:00:00 2001
From: Mike Hommey <mh@glandium.org>
Date: Thu, 7 Mar 2024 08:01:32 +0900
Subject: [PATCH] Only build duplex_collection_change_no_unregister when death
tests are supported
---
test/test_duplex.cpp | 2 ++
1 file changed, 2 insertions(+)
diff --git a/test/test_duplex.cpp b/test/test_duplex.cpp
index 518f44f..98a6701 100644
--- a/test/test_duplex.cpp
+++ b/test/test_duplex.cpp
@@ -201,6 +201,7 @@ TEST(cubeb, duplex_collection_change)
ASSERT_EQ(r, CUBEB_OK);
}
+#ifdef GTEST_HAS_DEATH_TEST
TEST(cubeb, duplex_collection_change_no_unregister)
{
cubeb * ctx;
@@ -221,6 +222,7 @@ TEST(cubeb, duplex_collection_change_no_unregister)
duplex_collection_change_impl(ctx);
}
+#endif
long
data_cb_input(cubeb_stream * stream, void * user, const void * inputbuffer,
--
2.44.0.1.g9765aa7075
|