Compare commits

...

2 Commits

Author SHA1 Message Date
556a9081aa watch 1 folder only 2025-12-29 20:29:50 +00:00
43e1415eaa drop image to only 1 test folder 2025-12-29 20:20:20 +00:00
2 changed files with 2 additions and 23 deletions

View File

@ -180,7 +180,7 @@ workspace "efsw"
kind "ConsoleApp"
language "C++"
links { "efsw-static-lib" }
files { "src/test/*.cpp" }
files { "src/test/efsw-test.cpp" }
includedirs { "include", "src" }
conf_links()
@ -211,16 +211,6 @@ workspace "efsw"
includedirs { "include", "src" }
conf_links()
filter "configurations:debug"
defines { "DEBUG" }
symbols "On"
conf_warnings()
filter "configurations:release"
defines { "NDEBUG" }
optimize "On"
conf_warnings()
project "efsw-test-stdc"
kind "ConsoleApp"
language "C"

View File

@ -156,18 +156,7 @@ int main( int argc, char** argv ) {
/// add a watch to the system
handleWatchID( fileWatcher.addWatch( CurPath + "test", ul, true ) );
/// adds another watch after started watching...
efsw::System::sleep( 100 );
efsw::WatchID watchID =
handleWatchID( fileWatcher.addWatch( CurPath + "test2", ul, true ) );
/// delete the watch
if ( watchID > 0 ) {
efsw::System::sleep( 1000 );
fileWatcher.removeWatch( watchID );
}
} else {
if ( fileWatcher.addWatch( path, ul, true ) > 0 ) {
fileWatcher.watch();