summaryrefslogtreecommitdiffstats
path: root/media/libcubeb/0002-disable-crash-reporter-death-test.patch
blob: b1217ba49d93c07e86f970089c9dc3a8aa1d7bd3 (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
34
35
36
37
38
39
40
41
diff --git a/test/test_duplex.cpp b/test/test_duplex.cpp
--- a/test/test_duplex.cpp
+++ b/test/test_duplex.cpp
@@ -13,16 +13,18 @@
 #endif
 #include "cubeb/cubeb.h"
 #include <atomic>
 #include <math.h>
 #include <memory>
 #include <stdio.h>
 #include <stdlib.h>
 
+#include "mozilla/gtest/MozHelpers.h"
+
 // #define ENABLE_NORMAL_LOG
 // #define ENABLE_VERBOSE_LOG
 #include "common.h"
 
 #define SAMPLE_FREQUENCY 48000
 #define STREAM_FORMAT CUBEB_SAMPLE_FLOAT32LE
 #define INPUT_CHANNELS 1
 #define INPUT_LAYOUT CUBEB_LAYOUT_MONO
@@ -201,16 +203,18 @@ TEST(cubeb, duplex_collection_change)
   ASSERT_EQ(r, CUBEB_OK);
 }
 
 TEST(cubeb, duplex_collection_change_no_unregister)
 {
   cubeb * ctx;
   int r;
 
+  mozilla::gtest::DisableCrashReporter();
+
   r = common_init(&ctx, "Cubeb duplex example with collection change");
   ASSERT_EQ(r, CUBEB_OK) << "Error initializing cubeb library";
 
   /* This test needs an available input device, skip it if this host does not
    * have one. */
   if (!can_run_audio_input_test(ctx)) {
     cubeb_destroy(ctx);
     return;