From ee56b6b203dccadaa8cc5bc9d2490942b4f91b92 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jukka=20Jyl=C3=A4nki?= Date: Wed, 8 Oct 2025 13:48:15 +0300 Subject: [PATCH] Add EMTEST_LACKS_MICROPHONE_ACCESS to allow skipping test browser.test_openal_capture_sanity that requires microphone access. --- test/test_browser.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/test/test_browser.py b/test/test_browser.py index fb69f6f627aee..16878d37260a4 100644 --- a/test/test_browser.py +++ b/test/test_browser.py @@ -196,6 +196,7 @@ def webgpu_disabled(): requires_webgl2 = unittest.skipIf(webgl2_disabled(), "This test requires WebGL2 to be available") requires_webgpu = unittest.skipIf(webgpu_disabled(), "This test requires WebGPU to be available") requires_sound_hardware = skipExecIf(os.getenv('EMTEST_LACKS_SOUND_HARDWARE'), 'This test requires sound hardware') +requires_microphone_access = skipExecIf(os.getenv('EMTEST_LACKS_MICROPHONE_ACCESS'), 'This test accesses microphone, which may need accepting a user prompt to enable it.') requires_offscreen_canvas = unittest.skipIf(os.getenv('EMTEST_LACKS_OFFSCREEN_CANVAS'), 'This test requires a browser with OffscreenCanvas') requires_es6_workers = unittest.skipIf(os.getenv('EMTEST_LACKS_ES6_WORKERS'), 'This test requires a browser with ES6 Module Workers support') requires_growable_arraybuffers = unittest.skipIf(os.getenv('EMTEST_LACKS_GROWABLE_ARRAYBUFFERS'), 'This test requires a browser that supports growable ArrayBuffers') @@ -2283,6 +2284,7 @@ def test_glerror(self): def test_openal_error(self, args): self.btest_exit('openal/test_openal_error.c', cflags=args) + @requires_microphone_access def test_openal_capture_sanity(self): self.btest_exit('openal/test_openal_capture_sanity.c')