diff options
Diffstat (limited to 'tools/regression/lib/libc/stdio')
-rw-r--r-- | tools/regression/lib/libc/stdio/test-perror.c | 4 | ||||
-rw-r--r-- | tools/regression/lib/libc/stdio/test-perror.t | 10 | ||||
-rw-r--r-- | tools/regression/lib/libc/stdio/test-printfloat.c | 3 | ||||
-rw-r--r-- | tools/regression/lib/libc/stdio/test-printfloat.t | 10 | ||||
-rw-r--r-- | tools/regression/lib/libc/stdio/test-scanfloat.c | 4 | ||||
-rw-r--r-- | tools/regression/lib/libc/stdio/test-scanfloat.t | 10 |
6 files changed, 38 insertions, 3 deletions
diff --git a/tools/regression/lib/libc/stdio/test-perror.c b/tools/regression/lib/libc/stdio/test-perror.c index 7d83155..992b734 100644 --- a/tools/regression/lib/libc/stdio/test-perror.c +++ b/tools/regression/lib/libc/stdio/test-perror.c @@ -51,6 +51,8 @@ main(int argc, char *argv[]) int i; char *s; + printf("1..1\n"); + strcpy(tmpfil, _PATH_TMP "perror.XXXXXXXX"); if (mkstemp(tmpfil) < 0) err(1, "mkstemp"); @@ -92,7 +94,7 @@ main(int argc, char *argv[]) assert(s == NULL); fclose(stderr); - printf("PASS perror()\n"); + printf("ok 1 - perror()\n"); return (0); } diff --git a/tools/regression/lib/libc/stdio/test-perror.t b/tools/regression/lib/libc/stdio/test-perror.t new file mode 100644 index 0000000..8bdfd03 --- /dev/null +++ b/tools/regression/lib/libc/stdio/test-perror.t @@ -0,0 +1,10 @@ +#!/bin/sh +# $FreeBSD$ + +cd `dirname $0` + +executable=`basename $0 .t` + +make $executable 2>&1 > /dev/null + +exec ./$executable diff --git a/tools/regression/lib/libc/stdio/test-printfloat.c b/tools/regression/lib/libc/stdio/test-printfloat.c index 3aa73e8..cd0f71c 100644 --- a/tools/regression/lib/libc/stdio/test-printfloat.c +++ b/tools/regression/lib/libc/stdio/test-printfloat.c @@ -52,6 +52,7 @@ int main(int argc, char *argv[]) { + printf("1..1\n"); assert(setlocale(LC_NUMERIC, "")); testfmt(" 1.000000E+00", "%13E", 1.0); @@ -203,7 +204,7 @@ main(int argc, char *argv[]) testfmt("0x2.00p-1030", "%.2a", 0x1.fffp-1030); testfmt("0x1.00p-1026", "%.2a", 0xf.fffp-1030); - printf("PASS printfloat\n"); + printf("ok 1 - printfloat\n"); return (0); } diff --git a/tools/regression/lib/libc/stdio/test-printfloat.t b/tools/regression/lib/libc/stdio/test-printfloat.t new file mode 100644 index 0000000..8bdfd03 --- /dev/null +++ b/tools/regression/lib/libc/stdio/test-printfloat.t @@ -0,0 +1,10 @@ +#!/bin/sh +# $FreeBSD$ + +cd `dirname $0` + +executable=`basename $0 .t` + +make $executable 2>&1 > /dev/null + +exec ./$executable diff --git a/tools/regression/lib/libc/stdio/test-scanfloat.c b/tools/regression/lib/libc/stdio/test-scanfloat.c index 791a33a..1071b2c 100644 --- a/tools/regression/lib/libc/stdio/test-scanfloat.c +++ b/tools/regression/lib/libc/stdio/test-scanfloat.c @@ -52,6 +52,8 @@ main(int argc, char *argv[]) double d = 0.0; float f = 0.0; + printf("1..1\n"); + buf[0] = '\0'; assert(setlocale(LC_NUMERIC, "")); @@ -174,7 +176,7 @@ main(int argc, char *argv[]) sscanf("0x1.2345678p-1050", "%le", &d); assert(d == 0x1.234568p-1050); - printf("PASS scanfloat\n"); + printf("ok 1 - scanfloat\n"); return (0); } diff --git a/tools/regression/lib/libc/stdio/test-scanfloat.t b/tools/regression/lib/libc/stdio/test-scanfloat.t new file mode 100644 index 0000000..8bdfd03 --- /dev/null +++ b/tools/regression/lib/libc/stdio/test-scanfloat.t @@ -0,0 +1,10 @@ +#!/bin/sh +# $FreeBSD$ + +cd `dirname $0` + +executable=`basename $0 .t` + +make $executable 2>&1 > /dev/null + +exec ./$executable |