test: use assert_se() instead of assert()

This commit is contained in:
Yu Watanabe
2021-10-12 15:20:28 +09:00
parent 1c71302f70
commit f21b863eeb
44 changed files with 131 additions and 131 deletions
+5 -5
View File
@@ -243,15 +243,15 @@ static void test_foreach_pointer(void) {
k++;
}
assert(k == 3);
assert_se(k == 3);
FOREACH_POINTER(i, &b) {
assert(k == 3);
assert(i == &b);
assert_se(k == 3);
assert_se(i == &b);
k = 4;
}
assert(k == 4);
assert_se(k == 4);
FOREACH_POINTER(i, NULL, &c, NULL, &b, NULL, &a, NULL) {
switch (k) {
@@ -292,7 +292,7 @@ static void test_foreach_pointer(void) {
k++;
}
assert(k == 11);
assert_se(k == 11);
}
static void test_align_to(void) {