Commit 80b7f337 authored by Andreas Schmidt's avatar Andreas Schmidt

Make memtest terminate again.

parent 9583d910
Pipeline #872 canceled with stages
in 6 minutes and 24 seconds
......@@ -44,7 +44,7 @@ test_prrt_mem:
- valgrind
script:
- which valgrind
- make memtest
- make memtest || exit 1
test_prrt_functional:
stage: test
......
......@@ -2,5 +2,5 @@ which valgrind
export prrtResult=0
valgrind --tool=memcheck --track-origins=yes --leak-check=full --error-exitcode=1 ./bin/receiver 5000 127 receiver.csv & export prrtReceiverProcessID=$!
valgrind --tool=memcheck --track-origins=yes --leak-check=full --error-exitcode=1 ./bin/sender 127.0.0.1 5000 127 sender.csv || prrtResult=$?
(kill -INT $prrtReceiverProcessID && wait $prrtReceiverProcessID) || prrtResult=$?
(kill -INT $prrtReceiverProcessID && (wait $prrtReceiverProcessID || prrtResults=$?)) || true
exit $prrtResult
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment