From db5de45b4ee02fd8c4b4e300f93c395db8f36409 Mon Sep 17 00:00:00 2001 From: Tom Yu Date: Fri, 23 Aug 2002 17:58:41 +0000 Subject: [PATCH] * dbtest.c: Include btree.h if we're compiled with -DSTATISTICS * Makefile.in: Add rules for bttest; also add a clean rule. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@14754 dc483132-0cff-0310-8789-dd5450dbe970 --- src/util/db2/test/ChangeLog | 7 +++++++ src/util/db2/test/Makefile.in | 12 +++++++++++- src/util/db2/test/dbtest.c | 3 +++ 3 files changed, 21 insertions(+), 1 deletion(-) diff --git a/src/util/db2/test/ChangeLog b/src/util/db2/test/ChangeLog index 8794fb2bf..c0caa5374 100644 --- a/src/util/db2/test/ChangeLog +++ b/src/util/db2/test/ChangeLog @@ -1,4 +1,11 @@ +2002-08-23 Tom Yu + * dbtest.c: Include btree.h if we're compiled with -DSTATISTICS. + + * Makefile.in: Add rules for bttest; also add a clean rule. + +2002-05-08 Ken Raeburn + * dbtest.c: Test for __STDC__ defined, not nonzero, to decide whether to use stdarg.h or varargs.h. (err): Similarly for function signature. diff --git a/src/util/db2/test/Makefile.in b/src/util/db2/test/Makefile.in index 0b9c2907b..443097f1c 100644 --- a/src/util/db2/test/Makefile.in +++ b/src/util/db2/test/Makefile.in @@ -7,7 +7,7 @@ FCTSH = @FCTSH@ TMPDIR=. LOCALINCLUDES= -I. -I$(srcdir)/../include -I../include -I$(srcdir)/../mpool \ - -I$(srcdir)/../db + -I$(srcdir)/../btree -I$(srcdir)/../hash -I$(srcdir)/../db PROG_LIBPATH=-L$(TOPLIBD) PROG_RPATH=$(KRB5_LIBDIR) @@ -21,3 +21,13 @@ dbtest: dbtest.o $(DB_DEPLIB) check:: dbtest $(KRB5_RUN_ENV) srcdir=$(srcdir) TMPDIR=$(TMPDIR) $(FCTSH) $(srcdir)/run.test + +bttest.o: $(srcdir)/btree.tests/main.c + $(CC) $(ALL_CFLAGS) -c $(srcdir)/btree.tests/main.c -o $@ + +bttest: bttest.o $(DB_DEPLIB) + $(CC_LINK) -o $@ bttest.o $(STRERROR_OBJ) $(DB_LIB) + +clean-unix:: + $(RM) dbtest.o dbtest __dbtest + $(RM) bttest.o bttest diff --git a/src/util/db2/test/dbtest.c b/src/util/db2/test/dbtest.c index ca18378ee..10a89a6fa 100644 --- a/src/util/db2/test/dbtest.c +++ b/src/util/db2/test/dbtest.c @@ -54,6 +54,9 @@ static char sccsid[] = "@(#)dbtest.c 8.17 (Berkeley) 9/1/94"; #include #include "db-int.h" +#ifdef STATISTICS +#include "btree.h" +#endif enum S { COMMAND, COMPARE, GET, PUT, REMOVE, SEQ, SEQFLAG, KEY, DATA }; -- 2.26.2