Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 6 Sep 2013 12:56:49 +0000 (UTC)
From:      Jilles Tjoelker <jilles@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r255301 - head/tools/regression/lib/libc/stdio
Message-ID:  <201309061256.r86CunHI078518@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: jilles
Date: Fri Sep  6 12:56:49 2013
New Revision: 255301
URL: http://svnweb.freebsd.org/changeset/base/255301

Log:
  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.

Modified:
  head/tools/regression/lib/libc/stdio/test-fmemopen.t
  head/tools/regression/lib/libc/stdio/test-open_memstream.t
  head/tools/regression/lib/libc/stdio/test-open_wmemstream.t

Modified: head/tools/regression/lib/libc/stdio/test-fmemopen.t
==============================================================================
--- head/tools/regression/lib/libc/stdio/test-fmemopen.t	Fri Sep  6 12:47:14 2013	(r255300)
+++ head/tools/regression/lib/libc/stdio/test-fmemopen.t	Fri Sep  6 12:56:49 2013	(r255301)
@@ -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

Modified: head/tools/regression/lib/libc/stdio/test-open_memstream.t
==============================================================================
--- head/tools/regression/lib/libc/stdio/test-open_memstream.t	Fri Sep  6 12:47:14 2013	(r255300)
+++ head/tools/regression/lib/libc/stdio/test-open_memstream.t	Fri Sep  6 12:56:49 2013	(r255301)
@@ -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

Modified: head/tools/regression/lib/libc/stdio/test-open_wmemstream.t
==============================================================================
--- head/tools/regression/lib/libc/stdio/test-open_wmemstream.t	Fri Sep  6 12:47:14 2013	(r255300)
+++ head/tools/regression/lib/libc/stdio/test-open_wmemstream.t	Fri Sep  6 12:56:49 2013	(r255301)
@@ -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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201309061256.r86CunHI078518>