use semaphore to remove race con in tests
Signed-off-by: Aidan Hahn <aidan@aidanis.online>
This commit is contained in:
parent
033f1d5173
commit
8dca2bac04
2 changed files with 23 additions and 7 deletions
|
|
@ -3,7 +3,7 @@ ALOG_TESTS = $(ALOG_TEST_SRCS:.c=)
|
|||
|
||||
$(ALOG_TESTS): $(ALOG_LIB)
|
||||
$(CC) $(CFLAGS) -g -o $(BUILD_DIR)/$@.o -c tests/$@.c
|
||||
$(CC) -o $(TARGET_DIR)/$@ $(BUILD_DIR)/$@.o $(ALOG_LIB)
|
||||
$(CC) -o $(TARGET_DIR)/$@ $(BUILD_DIR)/$@.o $(ALOG_LIB) -lpthread
|
||||
chmod +x $(TARGET_DIR)/$@
|
||||
|
||||
alog-tests: $(ALOG_TESTS)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue