diff options
author | Timothy Flynn <trflynn89@pm.me> | 2023-01-17 14:43:36 -0500 |
---|---|---|
committer | Tim Flynn <trflynn89@pm.me> | 2023-01-18 06:46:12 -0500 |
commit | 8ca528217c82ab8966a7c661ba92fa11975f5b26 (patch) | |
tree | f694aefbf3d36a89157d7ab5bfc05861eb2bb52c /Meta | |
parent | 91cbdc67de2564b29cdaf99f379f24874401c396 (diff) | |
download | serenity-8ca528217c82ab8966a7c661ba92fa11975f5b26.zip |
LibCore: Implement FileWatcher for Linux
This implements FileWatcher using inotify filesystem events. Serenity's
InodeWatcher is remarkably similar to inotify, so this is almost an
identical implementation.
The existing TestLibCoreFileWatcher test is added to Lagom (currently
just for Linux).
This does not implement BlockingFileWatcher as that is currently not
used anywhere but on Serenity.
Diffstat (limited to 'Meta')
-rw-r--r-- | Meta/Lagom/CMakeLists.txt | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/Meta/Lagom/CMakeLists.txt b/Meta/Lagom/CMakeLists.txt index a143b030c1..0567b9882c 100644 --- a/Meta/Lagom/CMakeLists.txt +++ b/Meta/Lagom/CMakeLists.txt @@ -573,6 +573,10 @@ if (BUILD_LAGOM) # LibCore lagom_test(../../Tests/LibCore/TestLibCoreIODevice.cpp WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}/../../Tests/LibCore) + if (LINUX AND NOT EMSCRIPTEN) + lagom_test(../../Tests/LibCore/TestLibCoreFileWatcher.cpp) + endif() + # Crypto file(GLOB LIBCRYPTO_TESTS CONFIGURE_DEPENDS "../../Tests/LibCrypto/*.cpp") foreach(source ${LIBCRYPTO_TESTS}) |