Skip to content

Commit 319496a

Browse files
authored
Merge pull request swiftlang#151 from dgrove-oss/disable-more-tests
use /usr/bin/vi instead of /usr/share/dict/words as test input
2 parents 1a7ff3f + aed3841 commit 319496a

File tree

5 files changed

+5
-5
lines changed

5 files changed

+5
-5
lines changed

Diff for: tests/dispatch_io.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -238,7 +238,7 @@ test_io_stop(void) // rdar://problem/8250057
238238
static void
239239
test_io_read_write(void)
240240
{
241-
const char *path_in = "/usr/share/dict/words";
241+
const char *path_in = "/usr/bin/vi";
242242
char path_out[] = "/tmp/dispatchtest_io.XXXXXX";
243243

244244
int in = open(path_in, O_RDONLY);

Diff for: tests/dispatch_io_net.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ main(int argc, char** argv)
6262
socklen_t addr1len;
6363
pid_t clientid;
6464

65-
const char *path = "/usr/share/dict/words";
65+
const char *path = "/usr/bin/vi";
6666
int read_fd, fd;
6767

6868
if (argc == 2) {

Diff for: tests/dispatch_read.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ test_fin(void *cxt)
4545
int
4646
main(void)
4747
{
48-
const char *path = "/usr/share/dict/words";
48+
const char *path = "/usr/bin/vi";
4949
struct stat sb;
5050

5151
dispatch_test_start("Dispatch Source Read");

Diff for: tests/dispatch_read2.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,7 @@ dispatch_read2(dispatch_fd_t fd,
118118
static void
119119
test_read(void)
120120
{
121-
const char *path = "/usr/share/dict/words";
121+
const char *path = "/usr/bin/vi";
122122
int fd = open(path, O_RDONLY);
123123
if (fd == -1) {
124124
test_errno("open", errno, 0);

Diff for: tests/dispatch_select.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ stage1(int stage)
8484
void
8585
stage2(void)
8686
{
87-
const char *path = "/usr/share/dict/words";
87+
const char *path = "/usr/bin/vi";
8888
struct stat sb;
8989

9090
int fd = open(path, O_RDONLY);

0 commit comments

Comments
 (0)