core/tempq: Add a test for moving a NULL queue
Signed-off-by: Anna Schumaker <Anna@OcarinaProject.net>
This commit is contained in:
parent
06ea2d8c0e
commit
a248f8ebf7
|
@ -64,6 +64,8 @@ static void test_move()
|
|||
struct queue *q0 = tempq_get(0);
|
||||
struct queue *q1 = tempq_get(1);
|
||||
|
||||
tempq_move(NULL, 0);
|
||||
|
||||
tempq_move(q1, 0);
|
||||
test_equal((void *)tempq_get(0), (void *)q1);
|
||||
test_equal((void *)tempq_get(1), (void *)q0);
|
||||
|
|
Loading…
Reference in New Issue