diff options
author | jilles <jilles@FreeBSD.org> | 2013-09-06 12:56:49 +0000 |
---|---|---|
committer | jilles <jilles@FreeBSD.org> | 2013-09-06 12:56:49 +0000 |
commit | 4b9d6b9519f542358221d95accdad0804427babf (patch) | |
tree | 6c2dcd07299749500fcf365bd57eeb3f70a16353 /tools/regression/lib | |
parent | 3263427a2eb3c2dcf28cdcc849a9b31fa8db4895 (diff) | |
download | FreeBSD-src-4b9d6b9519f542358221d95accdad0804427babf.zip FreeBSD-src-4b9d6b9519f542358221d95accdad0804427babf.tar.gz |
libc/stdio: Provide proper TAP output for fmemopen/open_[w]memstream.
A *.t file should provide Test Anything Protocol output so that it can be
run using the Perl "prove" tool.
Diffstat (limited to 'tools/regression/lib')
-rw-r--r-- | tools/regression/lib/libc/stdio/test-fmemopen.t | 7 | ||||
-rw-r--r-- | tools/regression/lib/libc/stdio/test-open_memstream.t | 7 | ||||
-rw-r--r-- | tools/regression/lib/libc/stdio/test-open_wmemstream.t | 7 |
3 files changed, 18 insertions, 3 deletions
diff --git a/tools/regression/lib/libc/stdio/test-fmemopen.t b/tools/regression/lib/libc/stdio/test-fmemopen.t index 8bdfd03..bd5157b 100644 --- a/tools/regression/lib/libc/stdio/test-fmemopen.t +++ b/tools/regression/lib/libc/stdio/test-fmemopen.t @@ -7,4 +7,9 @@ executable=`basename $0 .t` make $executable 2>&1 > /dev/null -exec ./$executable +echo 1..1 +if ./$executable; then + echo ok 1 - $executable successful +else + echo not ok 1 - $executable failed +fi diff --git a/tools/regression/lib/libc/stdio/test-open_memstream.t b/tools/regression/lib/libc/stdio/test-open_memstream.t index 8bdfd03..bd5157b 100644 --- a/tools/regression/lib/libc/stdio/test-open_memstream.t +++ b/tools/regression/lib/libc/stdio/test-open_memstream.t @@ -7,4 +7,9 @@ executable=`basename $0 .t` make $executable 2>&1 > /dev/null -exec ./$executable +echo 1..1 +if ./$executable; then + echo ok 1 - $executable successful +else + echo not ok 1 - $executable failed +fi diff --git a/tools/regression/lib/libc/stdio/test-open_wmemstream.t b/tools/regression/lib/libc/stdio/test-open_wmemstream.t index 8bdfd03..bd5157b 100644 --- a/tools/regression/lib/libc/stdio/test-open_wmemstream.t +++ b/tools/regression/lib/libc/stdio/test-open_wmemstream.t @@ -7,4 +7,9 @@ executable=`basename $0 .t` make $executable 2>&1 > /dev/null -exec ./$executable +echo 1..1 +if ./$executable; then + echo ok 1 - $executable successful +else + echo not ok 1 - $executable failed +fi |