X-Git-Url: http://erislabs.net/gitweb/?a=blobdiff_plain;f=tests%2Ftest-binary-io.c;h=718a66e54f9f1610ca3d341a3d65665dcf447763;hb=e7e8418d964ccdc0f1af799ee847d5b93a32b2e4;hp=3f5e9ccbf92a032020dea93517c91b0bc3e6f3bd;hpb=d33bbb6dccd748bbe0cefcb8f7f9b6ba690f2401;p=gnulib.git diff --git a/tests/test-binary-io.c b/tests/test-binary-io.c index 3f5e9ccbf..718a66e54 100644 --- a/tests/test-binary-io.c +++ b/tests/test-binary-io.c @@ -37,18 +37,18 @@ main () { /* Test the O_BINARY macro. */ { - int fd = open ("output2.tmp", O_CREAT | O_TRUNC | O_RDWR | O_BINARY); + int fd = open ("t-bin-out2.tmp", O_CREAT | O_TRUNC | O_RDWR | O_BINARY); if (write (fd, "Hello\n", 6) < 0) exit (1); close (fd); } { struct stat statbuf; - if (stat ("output2.tmp", &statbuf) < 0) + if (stat ("t-bin-out2.tmp", &statbuf) < 0) exit (1); ASSERT (statbuf.st_size == 6); } - unlink ("output2.tmp"); + unlink ("t-bin-out2.tmp"); /* Test the SET_BINARY macro. */ SET_BINARY (1); @@ -57,7 +57,7 @@ main () fclose (stderr); { struct stat statbuf; - if (stat ("output.tmp", &statbuf) < 0) + if (stat ("t-bin-out1.tmp", &statbuf) < 0) exit (1); ASSERT (statbuf.st_size == 6); }