From 2788a57e797fb3a5a44ca689e1858c4183373452 Mon Sep 17 00:00:00 2001 From: Godmar Back <gback@cs.vt.edu> Date: Tue, 23 Mar 2021 10:55:02 -0400 Subject: [PATCH] add UBSAN for debugging and fair-sched for test6 --- tests/Makefile | 2 +- tests/threadpool_test6.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/Makefile b/tests/Makefile index ca12c2b..a34ef91 100644 --- a/tests/Makefile +++ b/tests/Makefile @@ -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 diff --git a/tests/threadpool_test6.py b/tests/threadpool_test6.py index 4dae290..1c9dde5 100755 --- a/tests/threadpool_test6.py +++ b/tests/threadpool_test6.py @@ -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() -- GitLab