Mercurial > hg > octave-jordi > gnulib-hg
comparison tests/test-binary-io.c @ 16123:25b04be44d9e
binary-io tests: Avoid test failure on mingw when libtool is used.
* tests/test-binary-io.c (main): Don't remove t-bin-out2.tmp here.
Don't verify the size of t-bin-out1.tmp here.
* tests/test-binary-io.sh: Verify it here.
Reported by Simon Josefsson.
author | Bruno Haible <bruno@clisp.org> |
---|---|
date | Sun, 27 Nov 2011 15:54:08 +0100 |
parents | 97fc9a21a8fb |
children | 8250f2777afc |
comparison
equal
deleted
inserted
replaced
16122:e3e8e2fc21a9 | 16123:25b04be44d9e |
---|---|
44 struct stat statbuf; | 44 struct stat statbuf; |
45 if (stat ("t-bin-out2.tmp", &statbuf) < 0) | 45 if (stat ("t-bin-out2.tmp", &statbuf) < 0) |
46 exit (1); | 46 exit (1); |
47 ASSERT (statbuf.st_size == 6); | 47 ASSERT (statbuf.st_size == 6); |
48 } | 48 } |
49 unlink ("t-bin-out2.tmp"); | |
50 | 49 |
51 /* Test the SET_BINARY macro. */ | 50 /* Test the SET_BINARY macro. */ |
52 SET_BINARY (1); | 51 SET_BINARY (1); |
53 fputs ("Hello\n", stdout); | 52 fputs ("Hello\n", stdout); |
54 fclose (stdout); | |
55 fclose (stderr); | |
56 { | |
57 struct stat statbuf; | |
58 if (stat ("t-bin-out1.tmp", &statbuf) < 0) | |
59 exit (1); | |
60 ASSERT (statbuf.st_size == 6); | |
61 } | |
62 | 53 |
63 return 0; | 54 return 0; |
64 } | 55 } |