Files
ladybird/Tests/LibHTTP/CMakeLists.txt
Aliaksandr Kalenik d8b28a68cc LibHTTP: Replace loaded cache entries in CacheIndex
create_entry() issues INSERT OR REPLACE in SQL, so the on-disk row is
correctly overwritten when a (cache_key, vary_key) pair is re-inserted.
But the in-memory m_entries vector was only appended to, leaving the
stale Entry alongside the new one. Subsequent find_entry() calls could
then return the old metadata even though the DB had moved on.
2026-04-19 01:31:37 +02:00

11 lines
240 B
CMake

set(TEST_SOURCES
TestCacheUtilities.cpp
TestHTTPUtils.cpp
)
foreach(source IN LISTS TEST_SOURCES)
ladybird_test("${source}" LibWeb LIBS LibHTTP)
endforeach()
ladybird_test("TestCacheIndex.cpp" LibWeb LIBS LibHTTP LibDatabase)