aboutsummaryrefslogtreecommitdiffhomepage
path: root/fish_tests.cpp
diff options
context:
space:
mode:
authorGravatar ridiculousfish <corydoras@ridiculousfish.com>2014-05-03 16:31:11 -0700
committerGravatar ridiculousfish <corydoras@ridiculousfish.com>2014-05-03 16:31:11 -0700
commit47a81c2b39cd814e9d225c714f47aa3e3a7324c4 (patch)
tree2590b289e185662c8b2870b364406923fb1d16fe /fish_tests.cpp
parent186b0f62ebf34a446730d45a0a27a51be335df24 (diff)
Re-establish inotify watch when file is deleted
Diffstat (limited to 'fish_tests.cpp')
-rw-r--r--fish_tests.cpp4
1 files changed, 1 insertions, 3 deletions
diff --git a/fish_tests.cpp b/fish_tests.cpp
index 7751763c..caf2a480 100644
--- a/fish_tests.cpp
+++ b/fish_tests.cpp
@@ -2287,7 +2287,7 @@ static void trigger_or_wait_for_notification(universal_notifier_t *notifier, uni
{
// Hacktastic. Replace the file, then wait
char cmd[512];
- sprintf(cmd, "cp %ls %ls ; mv %ls %ls", UVARS_TEST_PATH, UVARS_TEST_PATH L".tmp", UVARS_TEST_PATH ".tmp", UVARS_TEST_PATH);
+ sprintf(cmd, "touch %ls ; mv %ls %ls", UVARS_TEST_PATH L".tmp", UVARS_TEST_PATH ".tmp", UVARS_TEST_PATH);
if (system(cmd)) err(L"Command failed: %s", cmd);
usleep(1000000 / 25);
break;
@@ -2366,8 +2366,6 @@ static void test_universal_notifiers()
test_notifiers_with_strategy(universal_notifier_t::strategy_notifyd);
#endif
#if __linux || linux
- if (system("mkdir -p /tmp/fish_uvars_test/ && touch /tmp/fish_uvars_test/varsfile.txt")) err(L"mkdir failed");
-
test_notifiers_with_strategy(universal_notifier_t::strategy_inotify);
#endif
}