summaryrefslogtreecommitdiff
path: root/Tests
diff options
context:
space:
mode:
authorkleines Filmröllchen <filmroellchen@serenityos.org>2023-03-14 20:29:10 +0100
committerLinus Groh <mail@linusgroh.de>2023-03-19 14:15:35 +0000
commitc7e963edde5794681146ad0f05dd3d62b5d898e6 (patch)
tree49b982909a37ea401e58079b2bbea656c7c99852 /Tests
parent73a367a00a74b7ddcbaa4114026bee97dffc17c8 (diff)
downloadserenity-c7e963edde5794681146ad0f05dd3d62b5d898e6.zip
Tests: Correct FLAC spec test paths
This makes the path consistent with Lagom in the next commit, so that the test binary doesn't need special cases for the two platforms.
Diffstat (limited to 'Tests')
-rw-r--r--Tests/LibAudio/CMakeLists.txt2
-rw-r--r--Tests/LibAudio/TestFLACSpec.cpp2
2 files changed, 2 insertions, 2 deletions
diff --git a/Tests/LibAudio/CMakeLists.txt b/Tests/LibAudio/CMakeLists.txt
index 5e70e6c524..605e855bd9 100644
--- a/Tests/LibAudio/CMakeLists.txt
+++ b/Tests/LibAudio/CMakeLists.txt
@@ -6,4 +6,4 @@ foreach(source IN LISTS TEST_SOURCES)
serenity_test("${source}" LibAudio LIBS LibAudio)
endforeach()
-install(DIRECTORY ${FLAC_SPEC_TEST_PATH} DESTINATION usr/Tests/LibAudio)
+install(DIRECTORY ${FLAC_SPEC_TEST_PATH} DESTINATION usr/Tests/LibAudio/FLAC)
diff --git a/Tests/LibAudio/TestFLACSpec.cpp b/Tests/LibAudio/TestFLACSpec.cpp
index cbecc3f815..7d3545fc47 100644
--- a/Tests/LibAudio/TestFLACSpec.cpp
+++ b/Tests/LibAudio/TestFLACSpec.cpp
@@ -13,7 +13,7 @@ struct DiscoverFLACTestsHack {
DiscoverFLACTestsHack()
{
// FIXME: Also run (our own) tests in this directory.
- (void)Core::Directory::for_each_entry("./SpecTests"sv, Core::DirIterator::Flags::SkipParentAndBaseDir, [](auto const& entry, auto const& directory) -> ErrorOr<IterationDecision> {
+ (void)Core::Directory::for_each_entry("./FLAC/SpecTests"sv, Core::DirIterator::Flags::SkipParentAndBaseDir, [](auto const& entry, auto const& directory) -> ErrorOr<IterationDecision> {
auto path = LexicalPath::join(directory.path().string(), entry.name);
if (path.extension() == "flac"sv) {
Test::add_test_case_to_suite(adopt_ref(*new ::Test::TestCase(