From 42e84759667dde37a223653b62a9b90307b8c59f Mon Sep 17 00:00:00 2001 From: wanghaemq Date: Mon, 27 Nov 2023 05:51:45 -0500 Subject: [PATCH] * NEW add test for regsitering a filename twice. Signed-off-by: wanghaemq --- test/proto.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/test/proto.c b/test/proto.c index 022e3f1..eeeeeb2 100644 --- a/test/proto.c +++ b/test/proto.c @@ -155,6 +155,9 @@ test_proto_handler() int key; int cap, nextseq; + assert(0 == nftp_proto_register("aaa", NULL, NULL)); + assert(NFTP_ERR_HT == nftp_proto_register("aaa", NULL, NULL)); + assert(bname != NULL); key = NFTP_HASH((uint8_t *)bname, strlen(bname));