X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=tests%2Flibpspp%2Fabt-test.c;h=fb6ddd704b18c4c9be9a18492488763121ca5cb4;hb=8318b3fffc62b96271e4bbbeb67fe706f797e993;hp=eae7d46787ba5549a4264aa951496d543c566b1c;hpb=5afa4c0d579f1ebff37b638a30ea397d58aca5f8;p=pspp diff --git a/tests/libpspp/abt-test.c b/tests/libpspp/abt-test.c index eae7d46787..fb6ddd704b 100644 --- a/tests/libpspp/abt-test.c +++ b/tests/libpspp/abt-test.c @@ -26,7 +26,6 @@ #include -#include #include #include #include @@ -119,7 +118,7 @@ static int aux_data; static struct element * abt_node_to_element (const struct abt_node *node) { - return abt_data (node, struct element, node); + return ABT_DATA (node, struct element, node); } /* Compares the `x' values in A and B and returns a strcmp-type @@ -371,6 +370,7 @@ check_abt (struct abt *abt, const int data[], size_t cnt) check (abt_node_to_element (p)->data == order[cnt - i - 1]); check (p == NULL); } + check (abt_is_empty (abt) == (cnt == 0)); free (order); }