mirror of
https://github.com/fish-shell/fish-shell
synced 2025-01-13 05:28:49 +00:00
Add a check to ensure the file really is deleted in inotify test
This commit is contained in:
parent
2f89ddbead
commit
73cbb0c65f
1 changed files with 7 additions and 0 deletions
|
@ -2416,6 +2416,13 @@ static bool test_basic_inotify_support()
|
|||
err(L"rm failed");
|
||||
}
|
||||
|
||||
/* Verify that file is deleted */
|
||||
struct stat statbuf;
|
||||
if (stat(INOTIFY_TEST_PATH, &statbuf) != -1 || errno != ENOENT)
|
||||
{
|
||||
err(L"File at path " INOTIFY_TEST_PATH " still exists after deleting it");
|
||||
}
|
||||
|
||||
/* The fd should be readable now or very shortly */
|
||||
struct timeval tv = {1, 0};
|
||||
fd_set fds;
|
||||
|
|
Loading…
Reference in a new issue