Skip to content

Commit

Permalink
sbrk03: Convert to detect support with flags
Browse files Browse the repository at this point in the history
.needs_abi_bits and .supported_archs are doc friendly.
Also, it does tst_brk() (in case of more run with -i).

Link: https://lore.kernel.org/ltp/[email protected]/
Reviewed-by: Cyril Hrubis <[email protected]>
Signed-off-by: Petr Vorel <[email protected]>
  • Loading branch information
pevik committed May 21, 2024
1 parent 7e08a58 commit f888bc2
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions testcases/kernel/syscalls/sbrk/sbrk03.c
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,6 @@

static void sbrk_test(void)
{
#if defined(__s390__) && defined(TST_ABI32)
void *ret1, *ret2;

/* set bkr to 0x10000000 */
Expand All @@ -59,13 +58,15 @@ static void sbrk_test(void)
}

tst_res(TPASS, "sbrk verify: %p", ret2);
#else
tst_res(TCONF, "Only works in 32bit on s390 series system");
#endif
}

static struct tst_test test = {
.test_all = sbrk_test,
.supported_archs = (const char *const []) {
"s390",
NULL
},
.needs_abi_bits = 32,
.tags = (const struct tst_tag[]) {
{"linux-git", "473a06572fcd"},
{}
Expand Down

0 comments on commit f888bc2

Please sign in to comment.