aboutsummaryrefslogtreecommitdiffhomepage
path: root/fish_tests.cpp
diff options
context:
space:
mode:
authorGravatar ridiculousfish <corydoras@ridiculousfish.com>2014-05-16 13:09:10 +0800
committerGravatar ridiculousfish <corydoras@ridiculousfish.com>2014-05-16 13:09:10 +0800
commite3cccdf571cafd82456fbcf5a000e22955d4b07c (patch)
tree196365b1e2e559aa6225a2284b6e9388170a0eaa /fish_tests.cpp
parenta0bf841be226ae631f706cef77cfab81a5e77abe (diff)
Add check for kernel version to try to determine why travis-ci is
failing with inotify
Diffstat (limited to 'fish_tests.cpp')
-rw-r--r--fish_tests.cpp8
1 files changed, 7 insertions, 1 deletions
diff --git a/fish_tests.cpp b/fish_tests.cpp
index 65a2484d..6cdfafc7 100644
--- a/fish_tests.cpp
+++ b/fish_tests.cpp
@@ -67,6 +67,7 @@
#if HAVE_INOTIFY_INIT || HAVE_INOTIFY_INIT1
#include <sys/inotify.h>
+#include <sys/utsname.h>
#endif
@@ -2435,8 +2436,12 @@ static bool test_basic_inotify_support()
int count = select(fd + 1, &fds, NULL, NULL, &tv);
if (count == 0 || ! FD_ISSET(fd, &fds))
{
- err(L"inotify file descriptor not readable. Is inotify busted?");
inotify_works = false;
+
+ err(L"inotify file descriptor not readable. Is inotify busted?");
+ struct utsname version = {};
+ uname(&version);
+ fprintf(stderr, "kernel version %s - %s\n", version.release, version.version);
}
else
{
@@ -2457,6 +2462,7 @@ static void test_universal_notifiers()
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_shmem_polling);
test_notifiers_with_strategy(universal_notifier_t::strategy_named_pipe);
+ system("ls");
#if __APPLE__
test_notifiers_with_strategy(universal_notifier_t::strategy_notifyd);
#endif