Skip to content
Snippets Groups Projects
Commit 2788a57e authored by gback's avatar gback
Browse files

add UBSAN for debugging and fair-sched for test6

parent 85adaa04
No related branches found
No related tags found
No related merge requests found
......@@ -13,7 +13,7 @@
CFLAGS=-pthread -Wall -O3 -Werror -Wmissing-prototypes -fopenmp -DNDEBUG
LDFLAGS=-pthread
# for debugging, you may use these
#CFLAGS=-Wall -O0 -g -Werror -Wmissing-prototypes -fopenmp
#CFLAGS=-Wall -O0 -g -Werror -Wmissing-prototypes -fopenmp -fsanitize=undefined
OBJ=threadpool.o list.o threadpool_lib.o
......
......@@ -5,7 +5,7 @@
import sys, subprocess, re, os
valgrind_cmd = ["valgrind", "--leak-check=full", "--suppressions=sigaltstack.suppression", "./threadpool_test6"]
valgrind_cmd = ["valgrind", "--fair-sched=yes", "--leak-check=full", "--suppressions=sigaltstack.suppression", "./threadpool_test6"]
proc = subprocess.Popen(valgrind_cmd, stdout=subprocess.PIPE, stderr=subprocess.PIPE)
stdout, stderr = proc.communicate()
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment