[LTP] [PATCH] syscalls/mmap06: Add testcases for EINVAL scenarios
Cyril Hrubis
chrubis@suse.cz
Fri Sep 8 16:35:35 CEST 2023
Hi!
Pushed with a minor change, thanks.
I did change the messages a bit so that we have sligtly nicer output
with:
diff --git a/testcases/kernel/syscalls/mmap/mmap06.c b/testcases/kernel/syscalls/mmap/mmap06.c
index 1a0c8e3cf..615743fa7 100644
--- a/testcases/kernel/syscalls/mmap/mmap06.c
+++ b/testcases/kernel/syscalls/mmap/mmap06.c
@@ -62,9 +62,9 @@ static void run(unsigned int i)
tst_res(TFAIL, "mmap() was successful unexpectedly");
SAFE_MUNMAP(TST_RET_PTR, MMAPSIZE);
} else if (TST_ERR == tc->exp_errno) {
- tst_res(TPASS, "mmap() failed with expected errno");
+ tst_res(TPASS | TERRNO, "mmap() failed with");
} else {
- tst_res(TFAIL | TERRNO, "mmap() failed but unexpected errno");
+ tst_res(TFAIL | TERRNO, "mmap() failed unexpectedly");
}
}
--
Cyril Hrubis
chrubis@suse.cz
More information about the ltp
mailing list