Skip to content

Commit f888bc2

Browse files
committed
sbrk03: Convert to detect support with flags
.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]>
1 parent 7e08a58 commit f888bc2

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

testcases/kernel/syscalls/sbrk/sbrk03.c

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,6 @@
3939

4040
static void sbrk_test(void)
4141
{
42-
#if defined(__s390__) && defined(TST_ABI32)
4342
void *ret1, *ret2;
4443

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

6160
tst_res(TPASS, "sbrk verify: %p", ret2);
62-
#else
63-
tst_res(TCONF, "Only works in 32bit on s390 series system");
64-
#endif
6561
}
6662

6763
static struct tst_test test = {
6864
.test_all = sbrk_test,
65+
.supported_archs = (const char *const []) {
66+
"s390",
67+
NULL
68+
},
69+
.needs_abi_bits = 32,
6970
.tags = (const struct tst_tag[]) {
7071
{"linux-git", "473a06572fcd"},
7172
{}

0 commit comments

Comments
 (0)