summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorAndrew Opalach <andrew@akon.city> 2025-08-12 17:38:09 -0400
committerAndrew Opalach <andrew@akon.city> 2025-08-12 17:38:09 -0400
commitab75884371a3545f7548498549e2faebbc465ed6 (patch)
tree0a4b99a55b186eda26bf63343db91c931fb88279 /tests
parenteaf84a7850f2af70b16fb417cd002f5e39df5db2 (diff)
downloadlibnaunet-ab75884371a3545f7548498549e2faebbc465ed6.tar.gz
libnaunet-ab75884371a3545f7548498549e2faebbc465ed6.tar.bz2
libnaunet-ab75884371a3545f7548498549e2faebbc465ed6.zip
Improve inotify usage, copy path in file_stdio
Signed-off-by: Andrew Opalach <andrew@akon.city>
Diffstat (limited to 'tests')
-rw-r--r--tests/fs_event_local.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/tests/fs_event_local.c b/tests/fs_event_local.c
index 89aa282..d5bb97c 100644
--- a/tests/fs_event_local.c
+++ b/tests/fs_event_local.c
@@ -26,11 +26,13 @@ s32 main(void)
nn_file_create(&TEST_FILE_PATH);
}
- nn_fs_event_init(&fs, &TEST_FILE_PATH, NNWT_CLOSE_WRITE, fs_event_callback, NULL);
+ nn_fs_event_init(&fs, &TEST_FILE_PATH, NNWT_FS_CLOSE_WRITE, fs_event_callback, NULL);
if (!nn_fs_event_start(&fs, &loop)) {
return EXIT_FAILURE;
}
+ al_printf("Do something like: \"echo 'yo' > test.txt\"\n");
+
nn_event_loop_run(&loop);
nn_common_close();