Commit 92361e39 authored by Andreas Schmidt's avatar Andreas Schmidt

Make timestamping terminate again.

parent ae1ba6b3
Pipeline #884 failed with stages
in 4 minutes and 47 seconds
......@@ -44,7 +44,10 @@ test_prrt_mem:
- valgrind
script:
- which valgrind
- bash memtest.sh
- 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=$?
- exit $prrtResult
test_prrt_functional:
stage: test
......
......@@ -44,7 +44,7 @@ int main(int argc, char* const argv[]) {
PrrtTimestampTableInstall(sock, ts_redundancy_packet, tstable_redundancy);
uint32_t i = 0;
while(i < rounds) {
while(i < rounds && keepRunning) {
char buffer[MAX_PAYLOAD_LENGTH + 1];
int n = PrrtSocket_recv(sock, buffer);
if(n < 0 ) {
......
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