From ab75884371a3545f7548498549e2faebbc465ed6 Mon Sep 17 00:00:00 2001 From: Andrew Opalach Date: Tue, 12 Aug 2025 17:38:09 -0400 Subject: Improve inotify usage, copy path in file_stdio Signed-off-by: Andrew Opalach --- tests/fs_event_local.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'tests') 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(); -- cgit v1.2.3-101-g0448