Skip to content

Commit 1cc3416

Browse files
Jack Morganmetan-ucw
authored andcommitted
statmount09.c: Enable mnt_ns_id for STATMOUNT_MNT_NS_ID
When HAVE_STATMOUNT_MNT_NS_ID is defined, use mnt_ns_id for statmount09 test case. Otherswise, use mnt_id. Closes: #1260 Signed-off-by: Jack Morgan <[email protected]> Reviewed-by: Cyril Hrubis <[email protected]>
1 parent 9080e1e commit 1cc3416

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

testcases/kernel/syscalls/statmount/statmount09.c

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,11 @@ static void run(void)
3939
return;
4040

4141
TST_EXP_EQ_LI(st_mount->mask, STATMOUNT_MNT_NS_ID);
42+
#if !defined(HAVE_STRUCT_STATMOUNT) || defined(HAVE_STRUCT_STATMOUNT_MNT_NS_ID)
4243
TST_EXP_EQ_LI(st_mount->mnt_ns_id, mnt_ns_id);
44+
#else
45+
tst_res(TCONF, "statmount.mnt_ns_id not available in current headers");
46+
#endif
4347
}
4448

4549
static void setup(void)

0 commit comments

Comments
 (0)