diff options
| author | 2025-08-12 17:38:09 -0400 | |
|---|---|---|
| committer | 2025-08-12 17:38:09 -0400 | |
| commit | ab75884371a3545f7548498549e2faebbc465ed6 (patch) | |
| tree | 0a4b99a55b186eda26bf63343db91c931fb88279 /tests | |
| parent | eaf84a7850f2af70b16fb417cd002f5e39df5db2 (diff) | |
| download | libnaunet-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.c | 4 |
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(); |