diff options
author | Keith Packard <keithp@keithp.com> | 2012-09-05 11:02:58 -0700 |
---|---|---|
committer | Keith Packard <keithp@keithp.com> | 2012-09-05 11:02:58 -0700 |
commit | 856f80c8d7f22b979c72d9c70b70187df6004a03 (patch) | |
tree | e99e0e0163a57c1be716739a95debc6279bf43a8 /test | |
parent | 0db936a5b7125d9b73633733cb34e5e4b72f01e8 (diff) | |
parent | b8ab93dfbc7f292b5bfe7e9113e1af824ccbd1a8 (diff) |
Merge remote-tracking branch 'jeremyhu/master'
Diffstat (limited to 'test')
-rw-r--r-- | test/list.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/test/list.c b/test/list.c index 82d232706..f9f54ee4e 100644 --- a/test/list.c +++ b/test/list.c @@ -137,7 +137,7 @@ static void test_xorg_list_del(void) { struct parent parent = { 0 }; - struct child child[3]; + struct child child[2]; struct child *c; xorg_list_init(&parent.children); @@ -178,8 +178,8 @@ test_xorg_list_del(void) xorg_list_add(&child[0].node, &parent.children); xorg_list_del(&parent.children); assert(xorg_list_is_empty(&parent.children)); + assert(!xorg_list_is_empty(&child[0].node)); assert(!xorg_list_is_empty(&child[1].node)); - assert(!xorg_list_is_empty(&child[2].node)); } static void |