mirror of
https://github.com/MariaDB/server.git
synced 2025-01-22 06:44:16 +01:00
run the linux portability tests. addresses #1524
git-svn-id: file:///svn/toku/tokudb@9880 c7de825b-a66e-492c-adef-691d508d4ae1
This commit is contained in:
parent
89251b22ef
commit
aae80d1446
3 changed files with 10 additions and 3 deletions
2
Makefile
2
Makefile
|
@ -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[]) {
|
||||
|
|
Loading…
Add table
Reference in a new issue