summaryrefslogtreecommitdiffstats
path: root/media/libcubeb/0002-disable-crash-reporter-death-test.patch
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-19 00:47:55 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-19 00:47:55 +0000
commit26a029d407be480d791972afb5975cf62c9360a6 (patch)
treef435a8308119effd964b339f76abb83a57c29483 /media/libcubeb/0002-disable-crash-reporter-death-test.patch
parentInitial commit. (diff)
downloadfirefox-26a029d407be480d791972afb5975cf62c9360a6.tar.xz
firefox-26a029d407be480d791972afb5975cf62c9360a6.zip
Adding upstream version 124.0.1.upstream/124.0.1
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'media/libcubeb/0002-disable-crash-reporter-death-test.patch')
-rw-r--r--media/libcubeb/0002-disable-crash-reporter-death-test.patch41
1 files changed, 41 insertions, 0 deletions
diff --git a/media/libcubeb/0002-disable-crash-reporter-death-test.patch b/media/libcubeb/0002-disable-crash-reporter-death-test.patch
new file mode 100644
index 0000000000..b1217ba49d
--- /dev/null
+++ b/media/libcubeb/0002-disable-crash-reporter-death-test.patch
@@ -0,0 +1,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;