mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-09-11 21:37:58 +03:00
The changes to tests are due to LibTimeZone incorrectly interpreting time stamps in the TZDB. The TZDB will list zone transitions in either UTC or the zone's local time (which is then subject to DST offsets). LibTimeZone did not handle the latter at all. For example: The following rule is in effect until November 18, 6PM UTC. America/Chicago -5:50:36 - LMT 1883 Nov 18 18:00u The following rule is in effect until March 1, 2AM in Chicago time. But at that time, a DST transition occurs, so the local time is actually 3AM. America/Chicago -6:00 Chicago C%sT 1936 Mar 1 2:00
24 lines
815 B
CMake
24 lines
815 B
CMake
set(TEST_SOURCES
|
|
TestLibCoreArgsParser.cpp
|
|
TestLibCoreDateTime.cpp
|
|
TestLibCoreDeferredInvoke.cpp
|
|
TestLibCoreFilePermissionsMask.cpp
|
|
TestLibCoreFileWatcher.cpp
|
|
TestLibCoreMappedFile.cpp
|
|
TestLibCorePromise.cpp
|
|
TestLibCoreSharedSingleProducerCircularQueue.cpp
|
|
TestLibCoreStream.cpp
|
|
)
|
|
|
|
foreach(source IN LISTS TEST_SOURCES)
|
|
serenity_test("${source}" LibCore)
|
|
endforeach()
|
|
|
|
target_link_libraries(TestLibCoreDateTime PRIVATE LibUnicode)
|
|
target_link_libraries(TestLibCorePromise PRIVATE LibThreading)
|
|
# NOTE: Required because of the LocalServer tests
|
|
target_link_libraries(TestLibCoreStream PRIVATE LibThreading)
|
|
target_link_libraries(TestLibCoreSharedSingleProducerCircularQueue PRIVATE LibThreading)
|
|
|
|
install(FILES long_lines.txt 10kb.txt small.txt DESTINATION usr/Tests/LibCore)
|