summaryrefslogtreecommitdiffstats
path: root/tools/regression/lib/libc/locale/test-mblen.c
diff options
context:
space:
mode:
authornik <nik@FreeBSD.org>2004-11-11 19:47:55 +0000
committernik <nik@FreeBSD.org>2004-11-11 19:47:55 +0000
commit3e959a33f972bdc48cced73e8f76eb9ce7ce64eb (patch)
treecfebca4a0526247931bc6bdde73f15f72f3e92d0 /tools/regression/lib/libc/locale/test-mblen.c
parent6e5bd296a6ca375161a672ed141aa5e414ffbc16 (diff)
downloadFreeBSD-src-3e959a33f972bdc48cced73e8f76eb9ce7ce64eb.zip
FreeBSD-src-3e959a33f972bdc48cced73e8f76eb9ce7ce64eb.tar.gz
Switch over to a different, more flexible test output protocol that's
understood by Perl's Test::Harness module and prove(1) commands. Update README to describe the new protocol. The work's broken down into two main sets of changes. First, update the existing test programs (shell scripts and C programs) to produce output in the ok/not ok format, and to, where possible, also produce a header describing the number of tests that are expected to be run. Second, provide the .t files that actually run the tests. In some cases these are copies of, or very similar too, scripts that already existed. I've kept the old scripts around so that it's possible to verify that behaviour under this new system (in terms of whether or not a test fails) is identical to the behaviour under the old system. Add a TODO file.
Diffstat (limited to 'tools/regression/lib/libc/locale/test-mblen.c')
-rw-r--r--tools/regression/lib/libc/locale/test-mblen.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/tools/regression/lib/libc/locale/test-mblen.c b/tools/regression/lib/libc/locale/test-mblen.c
index 236cbc7..dd07359 100644
--- a/tools/regression/lib/libc/locale/test-mblen.c
+++ b/tools/regression/lib/libc/locale/test-mblen.c
@@ -52,6 +52,8 @@ main(int argc, char *argv[])
* C/POSIX locale.
*/
+ printf("1..1\n");
+
assert(MB_CUR_MAX == 1);
/* No shift states in C locale. */
@@ -106,7 +108,7 @@ main(int argc, char *argv[])
buf[1] = 0xc1;
assert(mblen(buf, 2) == 2);
- printf("PASS mblen()\n");
+ printf("ok 1 - mblen()\n");
return (0);
}
OpenPOWER on IntegriCloud