Browse Source

Test: add etcp_conn_reinit stub to fail standalone test if called

nodeinfo-routing-update
Evgeny 4 weeks ago
parent
commit
4656f87f98
  1. 7
      tests/test_pkt_normalizer_standalone.c

7
tests/test_pkt_normalizer_standalone.c

@ -12,6 +12,13 @@
#include "../src/pkt_normalizer.h"
#include "../src/etcp.h"
// Stub for etcp_conn_reinit - should not be called in standalone test
void etcp_conn_reinit(struct ETCP_CONN* etcp) {
(void)etcp;
fprintf(stderr, "FAIL: etcp_conn_reinit called - ETCP not initialized in standalone test!\n");
exit(1);
}
#define TOTAL_PACKETS 100
#define MIN_PACKET_SIZE 10
#define MAX_PACKET_SIZE 3000

Loading…
Cancel
Save