From aed384162f0fcedddf4bddd7434f5693cf9a6944 Mon Sep 17 00:00:00 2001 From: David Grove Date: Tue, 16 Aug 2016 16:05:06 -0400 Subject: [PATCH] use /usr/bin/vi instead of /usr/share/dict/words as test input /usr/bin/vi will be on any reasonable distro; words may not be. --- tests/dispatch_io.c | 2 +- tests/dispatch_io_net.c | 2 +- tests/dispatch_read.c | 2 +- tests/dispatch_read2.c | 2 +- tests/dispatch_select.c | 2 +- 5 files changed, 5 insertions(+), 5 deletions(-) diff --git a/tests/dispatch_io.c b/tests/dispatch_io.c index 06be740e7..b7fe378dd 100644 --- a/tests/dispatch_io.c +++ b/tests/dispatch_io.c @@ -238,7 +238,7 @@ test_io_stop(void) // rdar://problem/8250057 static void test_io_read_write(void) { - const char *path_in = "/usr/share/dict/words"; + const char *path_in = "/usr/bin/vi"; char path_out[] = "/tmp/dispatchtest_io.XXXXXX"; int in = open(path_in, O_RDONLY); diff --git a/tests/dispatch_io_net.c b/tests/dispatch_io_net.c index 0e68f9937..bbffabc39 100644 --- a/tests/dispatch_io_net.c +++ b/tests/dispatch_io_net.c @@ -62,7 +62,7 @@ main(int argc, char** argv) socklen_t addr1len; pid_t clientid; - const char *path = "/usr/share/dict/words"; + const char *path = "/usr/bin/vi"; int read_fd, fd; if (argc == 2) { diff --git a/tests/dispatch_read.c b/tests/dispatch_read.c index 42c2a501a..f8a576c51 100644 --- a/tests/dispatch_read.c +++ b/tests/dispatch_read.c @@ -45,7 +45,7 @@ test_fin(void *cxt) int main(void) { - const char *path = "/usr/share/dict/words"; + const char *path = "/usr/bin/vi"; struct stat sb; dispatch_test_start("Dispatch Source Read"); diff --git a/tests/dispatch_read2.c b/tests/dispatch_read2.c index 9246d53f4..1bc0ef21f 100644 --- a/tests/dispatch_read2.c +++ b/tests/dispatch_read2.c @@ -118,7 +118,7 @@ dispatch_read2(dispatch_fd_t fd, static void test_read(void) { - const char *path = "/usr/share/dict/words"; + const char *path = "/usr/bin/vi"; int fd = open(path, O_RDONLY); if (fd == -1) { test_errno("open", errno, 0); diff --git a/tests/dispatch_select.c b/tests/dispatch_select.c index 2db054ff0..d1bfa91f3 100644 --- a/tests/dispatch_select.c +++ b/tests/dispatch_select.c @@ -84,7 +84,7 @@ stage1(int stage) void stage2(void) { - const char *path = "/usr/share/dict/words"; + const char *path = "/usr/bin/vi"; struct stat sb; int fd = open(path, O_RDONLY);