[LTP] [PATCH v2 06/10] syscalls/brk01: Make use of TST_EXP_MACROS
Cyril Hrubis
chrubis@suse.cz
Thu Dec 10 15:15:44 CET 2020
Signed-off-by: Cyril Hrubis <chrubis@suse.cz>
---
testcases/kernel/syscalls/brk/brk01.c | 9 +--------
1 file changed, 1 insertion(+), 8 deletions(-)
diff --git a/testcases/kernel/syscalls/brk/brk01.c b/testcases/kernel/syscalls/brk/brk01.c
index c50791d40..3f8606375 100644
--- a/testcases/kernel/syscalls/brk/brk01.c
+++ b/testcases/kernel/syscalls/brk/brk01.c
@@ -31,12 +31,7 @@ void verify_brk(void)
break;
}
- TEST(brk((void *)new_brk));
-
- if (TST_RET == -1) {
- tst_res(TFAIL | TERRNO, "brk() failed");
- return;
- }
+ TST_EXP_PASS(brk((void *)new_brk), "brk()");
cur_brk = (uintptr_t)sbrk(0);
@@ -51,8 +46,6 @@ void verify_brk(void)
if (i % 3 == 0)
*((char *)cur_brk) = 0;
}
-
- tst_res(TPASS, "brk() works fine");
}
static struct tst_test test = {
--
2.26.2
More information about the ltp
mailing list