Add new test for mutex.

This commit is contained in:
Patrick Pelissier committed 2017-03-12 18:58:25 +01:00
1 parent 41aa717782
commit 30e3018317
2 files changed
+62 -1

No files matched your search

+4 -1
View File
@@ -9,7 +9,7 @@ EXE=./a.exe
all:
@echo "Nothing to be done."
check: core array list i-list string buffer shared tuple snapshot algo dict rbtree variant
check: core mutex array list i-list string buffer shared tuple snapshot algo dict rbtree variant
valgrind:
make check VALGRIND=valgrind
@@ -17,6 +17,9 @@ valgrind:
core:
$(CC) $(CFLAGS) $(CPPFLAGS) -g $(COVERAGE_CFLAGS) test-mcore.c -lgmp -o $(EXE) && $(VALGRIND) $(EXE)
mutex:
$(CC) $(CFLAGS) $(CPPFLAGS) -g $(COVERAGE_CFLAGS) test-mmutex.c -lpthread -o $(EXE) && $(VALGRIND) $(EXE)
array:
$(CC) $(CFLAGS) $(CPPFLAGS) -g $(COVERAGE_CFLAGS) test-marray.c -lgmp -o $(EXE) && $(VALGRIND) $(EXE)