Tests/LibGfx: Enable file based tests on Windows

These actually were always working since we first enabling LibGfx
on Windows. I was just running them outside of the ctest context
and therefore had the wrong working directory so the test-inputs folder
could not be found
This commit is contained in:
ayeteadoe 2025-07-10 22:47:03 -07:00 committed by Jelle Raaijmakers
commit ccb87b4cb4
Notes: github-actions[bot] 2025-07-11 08:55:49 +00:00

View file

@ -1,20 +1,14 @@
set(TEST_SOURCES
BenchmarkJPEGLoader.cpp
TestColor.cpp
TestImageDecoder.cpp
TestImageWriter.cpp
TestQuad.cpp
TestRect.cpp
TestWOFF.cpp
TestWOFF2.cpp
)
# FIXME: Address runtime errors for file-based tests on Windows
if (NOT WIN32)
list(APPEND TEST_SOURCES
BenchmarkJPEGLoader.cpp
TestImageDecoder.cpp
TestWOFF.cpp
TestWOFF2.cpp
)
endif()
foreach(source IN LISTS TEST_SOURCES)
ladybird_test("${source}" LibGfx LIBS LibGfx)
endforeach()