diff options
author | unknown <jimw@mysql.com> | 2006-04-13 13:01:57 -0700 |
---|---|---|
committer | unknown <jimw@mysql.com> | 2006-04-13 13:01:57 -0700 |
commit | d23064a668e555c7b87c526b2e2bd76dd6f9d83a (patch) | |
tree | c1e9f2b1d43080af258cb346f4df22c09ced3b56 /unittest/mytap/tap.c | |
parent | c323e60c46c73efde0efea3ff056f83e17cb9009 (diff) | |
download | mariadb-git-d23064a668e555c7b87c526b2e2bd76dd6f9d83a.tar.gz |
Fix 'make distcheck' problems with new unittest code, and a small
portability problem.
BitKeeper/etc/ignore:
Use a wildcard to ignore all unittest *.t files
unittest/Makefile.am:
Add unit to DISTCLEANFILES, and make sure to copy it from srcdir
unittest/examples/Makefile.am:
Use srcdir to find mytap header
unittest/mysys/Makefile.am:
Use srcdir to find mytap header
unittest/mytap/t/Makefile.am:
Use builddir for finding mytap library
unittest/mytap/tap.c:
Fix portability problem (declarations after code in C code)
Diffstat (limited to 'unittest/mytap/tap.c')
-rw-r--r-- | unittest/mytap/tap.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/unittest/mytap/tap.c b/unittest/mytap/tap.c index 182210dda4f..2b728670cea 100644 --- a/unittest/mytap/tap.c +++ b/unittest/mytap/tap.c @@ -138,11 +138,12 @@ skip_all(char const *reason, ...) void ok(int const pass, char const *fmt, ...) { + va_list ap; + va_start(ap, fmt); + if (!pass && *g_test.todo == '\0') ++g_test.failed; - va_list ap; - va_start(ap, fmt); emit_tap(pass, fmt, ap); va_end(ap); if (*g_test.todo != '\0') |