summaryrefslogtreecommitdiff
path: root/code/test
diff options
context:
space:
mode:
Diffstat (limited to 'code/test')
-rw-r--r--code/test/Makefile2
-rw-r--r--code/test/stress.c7
2 files changed, 6 insertions, 3 deletions
diff --git a/code/test/Makefile b/code/test/Makefile
index 4172420..13fa476 100644
--- a/code/test/Makefile
+++ b/code/test/Makefile
@@ -1,4 +1,4 @@
-include ../Makefile.platform
+include ../ecp/Makefile.platform
CFLAGS=$(CFLAGS_PL) -I../ecp -I../util -Wno-int-to-void-pointer-cast
LDFLAGS=$(LDFLAGS_PL)
diff --git a/code/test/stress.c b/code/test/stress.c
index d6bc74a..6bc5a64 100644
--- a/code/test/stress.c
+++ b/code/test/stress.c
@@ -94,7 +94,9 @@ void *sender(ECPConnection *c) {
usleep(rnd % (2000000/msg_rate));
ecp_pld_set_type(pld_buf, MTYPE_MSG);
- ssize_t _rv = ecp_pld_send(c, &packet, &payload, ECP_SIZE_PLD(1000, 0));
+ ssize_t _rv = 0;
+ // XXX refactor
+ // _rv = ecp_pld_send(c, &packet, &payload, ECP_SIZE_PLD(1000, 0));
if (c_start && (_rv > 0)) {
pthread_mutex_lock(&t_mtx[idx]);
t_sent[idx]++;
@@ -153,7 +155,8 @@ ssize_t handle_msg_s(ECPConnection *conn, ecp_seq_t sq, unsigned char t, unsigne
payload.size = ECP_MAX_PLD;
ecp_pld_set_type(pld_buf, MTYPE_MSG);
- ssize_t _rv = ecp_pld_send(conn, &packet, &payload, ECP_SIZE_PLD(1000, 0));
+ // XXX refactor
+ // ssize_t _rv = ecp_pld_send(conn, &packet, &payload, ECP_SIZE_PLD(1000, 0));
return s;
}