Commit aae80d14 authored by Rich Prohaska's avatar Rich Prohaska Committed by Yoni Fogel

run the linux portability tests. addresses #1524

git-svn-id: file:///svn/toku/tokudb@9880 c7de825b-a66e-492c-adef-691d508d4ae1
parent 89251b22
......@@ -21,7 +21,7 @@ utils.dir: src.dir
build: $(patsubst %,%.dir, $(BUILDDIRS))
CHECKS = $(patsubst %,%.checkdir,$(filter-out linux, $(SRCDIRS)))
CHECKS = $(patsubst %,%.checkdir,$(SRCDIRS))
# This is the original check rule
# The stuff below allows "make -j2 -k check" to work
......
......@@ -22,6 +22,10 @@ $(TARGET): $(OBJS)
$(OBJS): CFLAGS += -DTOKU_ALLOW_DEPRECATED
#Blank on purpose
check: $(TARGET)
cd tests; $(MAKE) check
clean:
rm -rf $(TARGET) $(LIBPORTABILITY)
cd tests; $(MAKE) clean
......@@ -11,11 +11,14 @@ const int buffersize = 1024*1024;
static void do_mallocs(void) {
int i;
void *vp[nbuffers];
for (i=0; i<nbuffers; i++) {
int nbytes = buffersize;
void *vp = malloc(nbytes);
memset(vp, 0, nbytes);
vp[i] = malloc(nbytes);
memset(vp[i], 0, nbytes);
}
for (i=0; i<nbuffers; i++)
free(vp[i]);
}
int main(int argc, char *argv[]) {
......
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