Skip to content

Commit

Permalink
Merge pull request swiftlang#24 from seabaylea/dispatch_read2
Browse files Browse the repository at this point in the history
Switch to using /dev/urandom as file source
  • Loading branch information
MadCoder committed Dec 29, 2015
2 parents 32411c2 + 5ebfe1b commit 3f688ff
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tests/dispatch_read2.c
Original file line number Diff line number Diff line change
Expand Up @@ -179,7 +179,7 @@ test_read(void)
static void
test_read_write(void)
{
const char *path_in = "/dev/random";
const char *path_in = "/dev/urandom";
char path_out[] = "/tmp/dispatchtest_io.XXXXXX";
const size_t siz_in = 10240;

Expand Down Expand Up @@ -246,7 +246,7 @@ test_read_write(void)
static void
test_read_writes(void) // <rdar://problem/7785143>
{
const char *path_in = "/dev/random";
const char *path_in = "/dev/urandom";
char path_out[] = "/tmp/dispatchtest_io.XXXXXX";
const size_t chunks_out = 320;
const size_t siz_chunk = 32, siz_in = siz_chunk * chunks_out;
Expand Down Expand Up @@ -333,7 +333,7 @@ test_read_writes(void) // <rdar://problem/7785143>
static void
test_writes_reads_eagain(void) // rdar://problem/8333366
{
int in = open("/dev/random", O_RDONLY);
int in = open("/dev/urandom", O_RDONLY);
if (in == -1) {
test_errno("open", errno, 0);
test_stop();
Expand Down

0 comments on commit 3f688ff

Please sign in to comment.