mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-09-18 15:32:22 +00:00
Tests/LibMedia: Enable in Windows CI
This commit is contained in:
parent
0c9b16d09c
commit
94a3a7d9a1
Notes:
github-actions[bot]
2025-08-23 22:06:05 +00:00
Author: https://github.com/ayeteadoe
Commit: 94a3a7d9a1
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/5229
Reviewed-by: https://github.com/ADKaster ✅
2 changed files with 3 additions and 6 deletions
|
@ -17,6 +17,7 @@ add_subdirectory(LibXML)
|
||||||
|
|
||||||
if (ENABLE_GUI_TARGETS)
|
if (ENABLE_GUI_TARGETS)
|
||||||
add_subdirectory(LibGfx)
|
add_subdirectory(LibGfx)
|
||||||
|
add_subdirectory(LibMedia)
|
||||||
add_subdirectory(LibWeb)
|
add_subdirectory(LibWeb)
|
||||||
add_subdirectory(LibWebView)
|
add_subdirectory(LibWebView)
|
||||||
endif()
|
endif()
|
||||||
|
@ -28,10 +29,6 @@ endif()
|
||||||
|
|
||||||
add_subdirectory(LibDNS)
|
add_subdirectory(LibDNS)
|
||||||
|
|
||||||
if (ENABLE_GUI_TARGETS)
|
|
||||||
add_subdirectory(LibMedia)
|
|
||||||
endif()
|
|
||||||
|
|
||||||
if (ENABLE_CLANG_PLUGINS AND CMAKE_CXX_COMPILER_ID MATCHES "Clang$")
|
if (ENABLE_CLANG_PLUGINS AND CMAKE_CXX_COMPILER_ID MATCHES "Clang$")
|
||||||
add_subdirectory(ClangPlugins)
|
add_subdirectory(ClangPlugins)
|
||||||
endif()
|
endif()
|
||||||
|
|
|
@ -8,9 +8,9 @@
|
||||||
#include <AK/MemoryStream.h>
|
#include <AK/MemoryStream.h>
|
||||||
#include <AK/WeakPtr.h>
|
#include <AK/WeakPtr.h>
|
||||||
#include <LibCore/EventLoop.h>
|
#include <LibCore/EventLoop.h>
|
||||||
|
#include <LibCore/System.h>
|
||||||
#include <LibMedia/Audio/PlaybackStream.h>
|
#include <LibMedia/Audio/PlaybackStream.h>
|
||||||
#include <LibTest/TestSuite.h>
|
#include <LibTest/TestSuite.h>
|
||||||
#include <unistd.h>
|
|
||||||
|
|
||||||
#if defined(HAVE_PULSEAUDIO)
|
#if defined(HAVE_PULSEAUDIO)
|
||||||
# include <LibMedia/Audio/PulseAudioWrappers.h>
|
# include <LibMedia/Audio/PulseAudioWrappers.h>
|
||||||
|
@ -38,7 +38,7 @@ TEST_CASE(create_and_destroy_playback_stream)
|
||||||
return buffer.trim(writing_stream.offset());
|
return buffer.trim(writing_stream.offset());
|
||||||
});
|
});
|
||||||
EXPECT_EQ(!stream_result.is_error(), has_implementation);
|
EXPECT_EQ(!stream_result.is_error(), has_implementation);
|
||||||
usleep(10000);
|
MUST(Core::System::sleep_ms(100));
|
||||||
}
|
}
|
||||||
|
|
||||||
#if defined(HAVE_PULSEAUDIO)
|
#if defined(HAVE_PULSEAUDIO)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue