aboutsummaryrefslogtreecommitdiffhomepage
path: root/fish_tests.cpp
diff options
context:
space:
mode:
authorGravatar ridiculousfish <corydoras@ridiculousfish.com>2014-05-03 19:36:22 -0700
committerGravatar ridiculousfish <corydoras@ridiculousfish.com>2014-05-03 19:36:22 -0700
commit8cbd66b0f9aa7bbbfc75d61f51520d653f9e34f3 (patch)
tree75d9c58b074886f5ed12a499bf589a2f2345d982 /fish_tests.cpp
parent56bf209f84d91d905dfd61905713c9c52b590872 (diff)
parent47a81c2b39cd814e9d225c714f47aa3e3a7324c4 (diff)
Merge branch 'death_of_fishd' of https://github.com/fish-shell/fish-shell into death_of_fishd
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 fc8eb569..7256c3df 100644
--- a/fish_tests.cpp
+++ b/fish_tests.cpp
@@ -2292,7 +2292,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;
@@ -2371,8 +2371,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
}