aboutsummaryrefslogtreecommitdiff
path: root/winsup/testsuite
diff options
context:
space:
mode:
authorCorinna Vinschen <corinna@vinschen.de>2001-05-21 09:03:38 +0000
committerCorinna Vinschen <corinna@vinschen.de>2001-05-21 09:03:38 +0000
commitb62456f42fc0ae96c6adb4df502574c370b40ed3 (patch)
tree9dee63a0a855e0dc68f47a87e5f64e133438ae31 /winsup/testsuite
parent60be3f0066c8b884879981d053ffef40a2a93865 (diff)
downloadnewlib-b62456f42fc0ae96c6adb4df502574c370b40ed3.zip
newlib-b62456f42fc0ae96c6adb4df502574c370b40ed3.tar.gz
newlib-b62456f42fc0ae96c6adb4df502574c370b40ed3.tar.bz2
* winsup.api/mmaptest01.c: Add log output.
* winsup.api/mmaptest02.c: Write log output to stdout. * winsup.api/mmaptest03.c: Ditto.
Diffstat (limited to 'winsup/testsuite')
-rw-r--r--winsup/testsuite/ChangeLog6
-rw-r--r--winsup/testsuite/winsup.api/mmaptest01.c5
-rw-r--r--winsup/testsuite/winsup.api/mmaptest02.c4
-rw-r--r--winsup/testsuite/winsup.api/mmaptest03.c2
4 files changed, 13 insertions, 4 deletions
diff --git a/winsup/testsuite/ChangeLog b/winsup/testsuite/ChangeLog
index 76a7597..7f05b7e 100644
--- a/winsup/testsuite/ChangeLog
+++ b/winsup/testsuite/ChangeLog
@@ -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>
* winsup.api/winsup.exp: Force linking all tests against binmode.o.
diff --git a/winsup/testsuite/winsup.api/mmaptest01.c b/winsup/testsuite/winsup.api/mmaptest01.c
index b400db7..5a14461 100644
--- a/winsup/testsuite/winsup.api/mmaptest01.c
+++ b/winsup/testsuite/winsup.api/mmaptest01.c
@@ -99,7 +99,10 @@ int main ()
/* the buffers have to be different */
if (buf1 == buf2 || !memcmp (buf1, buf2, 20))
- return 1;
+ {
+ printf ("buffers are not different!\n");
+ return 1;
+ }
return 0;
}
diff --git a/winsup/testsuite/winsup.api/mmaptest02.c b/winsup/testsuite/winsup.api/mmaptest02.c
index 3e7b929..ec5bac7 100644
--- a/winsup/testsuite/winsup.api/mmaptest02.c
+++ b/winsup/testsuite/winsup.api/mmaptest02.c
@@ -29,7 +29,7 @@ int fd;
void
perror_exit (char *str, int code)
{
- perror (str);
+ printf ("%s: %s\n", str, strerror (errno));
exit (code);
}
@@ -149,7 +149,7 @@ test_3 ()
}
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);
}
diff --git a/winsup/testsuite/winsup.api/mmaptest03.c b/winsup/testsuite/winsup.api/mmaptest03.c
index 6cff971..544e3e4 100644
--- a/winsup/testsuite/winsup.api/mmaptest03.c
+++ b/winsup/testsuite/winsup.api/mmaptest03.c
@@ -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
perror_exit (char *str)
{
- perror (str);
+ printf ("%s: %s\n", str, strerror (errno));
exit (1);
}