Test: add etcp_conn_reinit stub to fail standalone test if called
This commit is contained in:
1 parent
e31d70d556
commit
3283f5dbd5
1 file changed
+7
@@ -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
|
||||
|
||||
Reference in new issue
Block a user