Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
M
mariadb
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
mariadb
Commits
0ed6517a
Commit
0ed6517a
authored
Apr 13, 2006
by
jimw@mysql.com
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix 'make distcheck' problems with new unittest code, and a small
portability problem.
parent
66c29e0f
Changes
6
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
13 additions
and
6 deletions
+13
-6
.bzrignore
.bzrignore
+4
-0
unittest/Makefile.am
unittest/Makefile.am
+3
-1
unittest/examples/Makefile.am
unittest/examples/Makefile.am
+1
-1
unittest/mysys/Makefile.am
unittest/mysys/Makefile.am
+1
-1
unittest/mytap/t/Makefile.am
unittest/mytap/t/Makefile.am
+1
-1
unittest/mytap/tap.c
unittest/mytap/tap.c
+3
-2
No files found.
.bzrignore
View file @
0ed6517a
...
...
@@ -1760,3 +1760,7 @@ zlib/*.ds?
zlib/*.vcproj
mysql-test/r/*.log
client/mysql_upgrade
unittest/examples/*.t
unittest/mysys/*.t
unittest/mytap/t/*.t
unittest/unit
unittest/Makefile.am
View file @
0ed6517a
...
...
@@ -2,6 +2,8 @@ SUBDIRS = mytap . mysys examples
noinst_SCRIPTS
=
unit
DISTCLEANFILES
=
unit
unittests
=
mysys examples
.PHONY
:
all mytap mysys examples test
...
...
@@ -18,6 +20,6 @@ mysys:
examples
:
cd
examples
&&
$(MAKE)
unit
:
unit.pl
unit
:
$(srcdir)/
unit.pl
cp
$<
$@
chmod
+x
$@
unittest/examples/Makefile.am
View file @
0ed6517a
AM_CPPFLAGS
=
-I
$(srcdir)
-I
$(top_builddir)
/include
AM_CPPFLAGS
+=
-I
$(top_
build
dir)
/unittest/mytap
AM_CPPFLAGS
+=
-I
$(top_
src
dir)
/unittest/mytap
AM_LDFLAGS
=
-L
$(top_builddir)
/unittest/mytap
...
...
unittest/mysys/Makefile.am
View file @
0ed6517a
AM_CPPFLAGS
=
@ZLIB_INCLUDES@
-I
$(top_builddir)
/include
AM_CPPFLAGS
+=
-I
$(top_srcdir)
/include
-I
$(top_
build
dir)
/unittest/mytap
AM_CPPFLAGS
+=
-I
$(top_srcdir)
/include
-I
$(top_
src
dir)
/unittest/mytap
AM_LDFLAGS
=
-L
$(top_builddir)
/unittest/mytap
-L
$(top_builddir)
/mysys
AM_LDFLAGS
+=
-L
$(top_builddir)
/strings
-L
$(top_builddir)
/dbug
...
...
unittest/mytap/t/Makefile.am
View file @
0ed6517a
...
...
@@ -2,7 +2,7 @@
AM_CPPFLAGS
=
-I
$(srcdir)
-I
$(top_builddir)
/include
AM_CPPFLAGS
+=
-I
$(srcdir)
/..
AM_LDFLAGS
=
-L
$(
srcdir)
/..
AM_LDFLAGS
=
-L
$(
top_builddir)
/unittest/mytap
AM_CFLAGS
=
-Wall
-ansi
-pedantic
...
...
unittest/mytap/tap.c
View file @
0ed6517a
...
...
@@ -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'
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment