core/tempq: Add a test for moving a NULL queue

Signed-off-by: Anna Schumaker <Anna@OcarinaProject.net>
This commit is contained in:
Anna Schumaker 2015-12-14 14:06:46 -05:00
parent 06ea2d8c0e
commit a248f8ebf7
1 changed files with 2 additions and 0 deletions

View File

@ -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);