Skip to content

Commit

Permalink
* NEW add test for regsitering a filename twice.
Browse files Browse the repository at this point in the history
Signed-off-by: wanghaemq <[email protected]>
  • Loading branch information
wanghaEMQ committed Nov 27, 2023
1 parent 5f17254 commit 42e8475
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions test/proto.c
Original file line number Diff line number Diff line change
Expand Up @@ -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));

Expand Down

0 comments on commit 42e8475

Please sign in to comment.