Commit 2661b48d authored by Bradley C. Kuszmaul's avatar Bradley C. Kuszmaul Committed by Yoni Fogel

Get things to compile. Addresses #1343.

git-svn-id: file:///svn/toku/tokudb.1032b+1343@8555 c7de825b-a66e-492c-adef-691d508d4ae1
parent 88caea42
...@@ -286,6 +286,9 @@ cscope.out: cscope.files $(TOKUROOT)*/*.[ch] $(TOKUROOT)*/*/*.[ch] $(TOKUROOT)*/ ...@@ -286,6 +286,9 @@ cscope.out: cscope.files $(TOKUROOT)*/*.[ch] $(TOKUROOT)*/*/*.[ch] $(TOKUROOT)*/
.PHONY: clean clean-default .PHONY: clean clean-default
clean: clean-default clean: clean-default
%.dir.clean:
$(MAYBEATSIGN)cd $* && $(MAKE) -k clean
clean-default: clean-default:
$(MAYBEATSIGN)rm -f $(BINS) *.$(AEXT) *.$(SOEXT) *.$(OEXT) $(MAYBEATSIGN)rm -f $(BINS) *.$(AEXT) *.$(SOEXT) *.$(OEXT)
$(MAYBEATSIGN)rm -f *.bb *.bbg *.da *.gcov *.gcno *.gcda $(MAYBEATSIGN)rm -f *.bb *.bbg *.da *.gcov *.gcno *.gcda
......
...@@ -42,7 +42,7 @@ BDB_DONTRUN_TESTS = \ ...@@ -42,7 +42,7 @@ BDB_DONTRUN_TESTS = \
manyfiles \ manyfiles \
test938c \ test938c \
helgrind1 \ helgrind1 \
helgrind 2\ helgrind2 \
#\ ends prev line #\ ends prev line
BDB_TESTS = $(patsubst %.c,%.bdb$(BINSUF),$(filter-out $(patsubst %,%.c,$(BDB_DONTRUN_TESTS)),$(SRCS))) BDB_TESTS = $(patsubst %.c,%.bdb$(BINSUF),$(filter-out $(patsubst %,%.c,$(BDB_DONTRUN_TESTS)),$(SRCS)))
......
...@@ -10,7 +10,9 @@ ...@@ -10,7 +10,9 @@
#include <toku_portability.h> #include <toku_portability.h>
#include <memory.h> #include <memory.h>
#include <db.h> #include <db.h>
#ifdef USE_TDB
#include <dlmalloc.h> #include <dlmalloc.h>
#endif
#include "test.h" #include "test.h"
static int malloc_counter=0; static int malloc_counter=0;
...@@ -78,6 +80,7 @@ test1 (void) ...@@ -78,6 +80,7 @@ test1 (void)
toku_free(x); assert(malloc_counter==1 && free_counter==1 && realloc_counter==1); toku_free(x); assert(malloc_counter==1 && free_counter==1 && realloc_counter==1);
} }
#ifdef USE_TDB
r = db_env_set_func_malloc(dlmalloc); assert(r==0); r = db_env_set_func_malloc(dlmalloc); assert(r==0);
r = db_env_set_func_realloc(dlrealloc); assert(r==0); r = db_env_set_func_realloc(dlrealloc); assert(r==0);
r = db_env_set_func_free(dlfree); assert(r==0); r = db_env_set_func_free(dlfree); assert(r==0);
...@@ -87,7 +90,7 @@ test1 (void) ...@@ -87,7 +90,7 @@ test1 (void)
x = toku_realloc(x, 6); assert(x); x = toku_realloc(x, 6); assert(x);
toku_free(x); toku_free(x);
} }
#endif
} }
int int
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment