star-mc

Parallel estimation of Monte Carlo integrators
git clone git://git.meso-star.fr/star-mc.git
Log | Files | Refs | README | LICENSE

commit 114c0522106ad71169a587675036066034a921f5
parent 5e01f778adb7898b9d120b05255d627f540f9828
Author: Vincent Forest <vincent.forest@meso-star.com>
Date:   Thu, 13 Oct 2022 21:29:17 +0200

Handle segfaults when running tests

Do not print the segfault messages when invoking "make test":
they are now redirected to /dev/null.

Diffstat:
Mmake.sh | 4+++-
1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/make.sh b/make.sh @@ -65,7 +65,9 @@ run_test() fi printf "%s " "${test}" - if ./"${test}" > /dev/null 2>&1; then + + # Using sh -c to handle segfault messages + if sh -c "./\"${test}\" &> /dev/null 2>&1" 2> /dev/null; then printf "\e[1;32mOK\e[m\n" else printf "\e[1;31mErreur\e[m\n"