In case of segfault, log a failure instead of nothing.

This commit is contained in:
Samuel Aubertin
2022-01-28 09:53:12 +01:00
parent b2421448a9
commit 64f0c6b318
2 changed files with 9 additions and 26 deletions

View File

@@ -22,7 +22,7 @@ DEPENDENCIES := $(foreach exec,$(EXECUTABLES), $(if $(shell which $(exec) 2> /de
### Generic flags
SRCS= spectre_v1 spectre_v2
CFLAGS= -march=native -g
CFLAGS= -march=native
CFLAGS+= -W
CFLAGS+= -Wall
CFLAGS+= -Werror -Wextra
@@ -32,7 +32,7 @@ LDFLAGS= -fuse-ld=lld
### Octopus flags
CCS= clang gcc
OPTIMIZATIONS= 0 1 2 3
OPTIMIZATIONS= 0 1 2 3 fast s
RETPOLINE= mretpoline
UUID:= $(shell uuid)
RESULTS_FILE:= results-$(UUID).json
@@ -148,7 +148,7 @@ $(RESULTS_FILE): build
for p in $(PROGS); do \
for t in $$(seq $(TIMES)); do \
sleep 0.1; \
taskset 01 ./$$p $(FLAGS) >> $@; \
(taskset 01 ./$$p $(FLAGS) || printf "{ \"$$p\": false }")>> $@; \
if ! [ "$$p" = "$(lastword $(PROGS))" ]; \
then echo ',' >> $@; \
else if ! [ $$t -eq $(TIMES) ]; \