mirror of
https://github.com/tezc/sc.git
synced 2025-01-28 07:03:06 +08:00
added double destroy queue test
This commit is contained in:
parent
286379b0b2
commit
502372b4d6
@ -103,8 +103,13 @@ void test1(void)
|
||||
int i = 0;
|
||||
int *p;
|
||||
|
||||
p = NULL;
|
||||
sc_queue_destroy(p);
|
||||
|
||||
assert(sc_queue_create(p, 2) == true);
|
||||
sc_queue_destroy(p);
|
||||
sc_queue_destroy(p);
|
||||
|
||||
sc_queue_add_first(p, 1);
|
||||
sc_queue_add_first(p, 2);
|
||||
sc_queue_add_first(p, 3);
|
||||
|
Loading…
x
Reference in New Issue
Block a user