aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--.buildbot/firefly-x86_64-amdepyc_test_tng.sh2
-rw-r--r--src/transport/test_communicator_basic.c7
2 files changed, 5 insertions, 4 deletions
diff --git a/.buildbot/firefly-x86_64-amdepyc_test_tng.sh b/.buildbot/firefly-x86_64-amdepyc_test_tng.sh
index 031615517..75a1cb994 100644
--- a/.buildbot/firefly-x86_64-amdepyc_test_tng.sh
+++ b/.buildbot/firefly-x86_64-amdepyc_test_tng.sh
@@ -3,6 +3,6 @@
3# echo "Skipped" 3# echo "Skipped"
4 4
5pushd src/transport 5pushd src/transport
6make check TESTS='test_communicator_basic-tcp test_communicator_rekey-tcp' 6make check TESTS='test_communicator_basic-tcp test_communicator_rekey-tcp test_communicator_basic-unix'
7pkill --signal 9 -U buildbot gnunet 7pkill --signal 9 -U buildbot gnunet
8popd 8popd
diff --git a/src/transport/test_communicator_basic.c b/src/transport/test_communicator_basic.c
index aa02bda93..e3573ac2c 100644
--- a/src/transport/test_communicator_basic.c
+++ b/src/transport/test_communicator_basic.c
@@ -221,7 +221,7 @@ make_payload (size_t payload_size)
221 GNUNET_assert (payload_size >= 8); // So that out timestamp fits 221 GNUNET_assert (payload_size >= 8); // So that out timestamp fits
222 ts = GNUNET_TIME_absolute_get (); 222 ts = GNUNET_TIME_absolute_get ();
223 ts_n = GNUNET_TIME_absolute_hton (ts); 223 ts_n = GNUNET_TIME_absolute_hton (ts);
224 memset (payload, 0, payload_size); 224 memset (payload, 'a', payload_size);
225 memcpy (payload, &ts_n, sizeof (struct GNUNET_TIME_AbsoluteNBO)); 225 memcpy (payload, &ts_n, sizeof (struct GNUNET_TIME_AbsoluteNBO));
226 return payload; 226 return payload;
227} 227}
@@ -367,8 +367,9 @@ add_queue_cb (void *cls,
367 "Queue established, starting test...\n"); 367 "Queue established, starting test...\n");
368 start_short = GNUNET_TIME_absolute_get (); 368 start_short = GNUNET_TIME_absolute_get ();
369 my_tc = tc_h; 369 my_tc = tc_h;
370 if (0 != mtu) 370 if (0 != mtu) /* Message header overhead */
371 long_message_size = mtu - 4; /* Dummy message header overhead */ 371 long_message_size = mtu - sizeof(struct GNUNET_TRANSPORT_SendMessageTo)
372 - sizeof(struct GNUNET_MessageHeader);
372 else 373 else
373 long_message_size = LONG_MESSAGE_SIZE; 374 long_message_size = LONG_MESSAGE_SIZE;
374 phase = TP_BURST_SHORT; 375 phase = TP_BURST_SHORT;