* winsup.api/mmaptest01.c: Add log output.
* winsup.api/mmaptest02.c: Write log output to stdout. * winsup.api/mmaptest03.c: Ditto.
This commit is contained in:
parent
60be3f0066
commit
b62456f42f
|
@ -1,3 +1,9 @@
|
||||||
|
2001-05-21 Corinna Vinschen <corinna@vinschen.de>
|
||||||
|
|
||||||
|
* winsup.api/mmaptest01.c: Add log output.
|
||||||
|
* winsup.api/mmaptest02.c: Write log output to stdout.
|
||||||
|
* winsup.api/mmaptest03.c: Ditto.
|
||||||
|
|
||||||
2001-05-15 Corinna Vinschen <corinna@vinschen.de>
|
2001-05-15 Corinna Vinschen <corinna@vinschen.de>
|
||||||
|
|
||||||
* winsup.api/winsup.exp: Force linking all tests against binmode.o.
|
* winsup.api/winsup.exp: Force linking all tests against binmode.o.
|
||||||
|
|
|
@ -99,7 +99,10 @@ int main ()
|
||||||
|
|
||||||
/* the buffers have to be different */
|
/* the buffers have to be different */
|
||||||
if (buf1 == buf2 || !memcmp (buf1, buf2, 20))
|
if (buf1 == buf2 || !memcmp (buf1, buf2, 20))
|
||||||
return 1;
|
{
|
||||||
|
printf ("buffers are not different!\n");
|
||||||
|
return 1;
|
||||||
|
}
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
|
@ -29,7 +29,7 @@ int fd;
|
||||||
void
|
void
|
||||||
perror_exit (char *str, int code)
|
perror_exit (char *str, int code)
|
||||||
{
|
{
|
||||||
perror (str);
|
printf ("%s: %s\n", str, strerror (errno));
|
||||||
exit (code);
|
exit (code);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -149,7 +149,7 @@ test_3 ()
|
||||||
}
|
}
|
||||||
if (y == 0)
|
if (y == 0)
|
||||||
{
|
{
|
||||||
fputs ("test 3: couldn't get two consecutive pages, giving up\n", stderr);
|
fputs ("test 3: couldn't get two consecutive pages, giving up\n", stdout);
|
||||||
exit (65);
|
exit (65);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -23,7 +23,7 @@ char const line[] = "y1 y1 y1 y1 y1 y1 y1 y1 y1 y1 y1 y1 y1 y1 y1 y1 y1";
|
||||||
void
|
void
|
||||||
perror_exit (char *str)
|
perror_exit (char *str)
|
||||||
{
|
{
|
||||||
perror (str);
|
printf ("%s: %s\n", str, strerror (errno));
|
||||||
exit (1);
|
exit (1);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue