syscalls/mmap15: relax condition a bit
PATCH 1/1 syscalls/mmap15: relax condition a bit
High address is arch specific, and it also occasionally changes as can be seen in history of this test.
Relax the condition and accept both ENOMEM and EINVAL as expected outcome.
--- testcases/kernel/syscalls/mmap/mmap15.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-)
testcases/kernel/syscalls/mmap/mmap15.c +2 -3
@@ -80,10 +80,9 @@ int main(int ac, char **av)continue ; } -if (errno !=ENOMEM ) { +if (errno !=ENOMEM && errno !=EINVAL ) {tst_resm (TFAIL |TERRNO ,"mmap into high region " -"failed unexpectedly - expect " -"errno=ENOMEM, got" ); +"failed unexpectedly" ); }else {tst_resm (TPASS |TERRNO ,"mmap into high region " "failed as expected" );
Signature · 1 line
1.8.3.1
PATCH 1/1 syscalls/mmap15: relax condition a bit
Hi!
Quoted 7 lines
High address is arch specific, and it also occasionally changes as can be seen in history of this test.
Relax the condition and accept both ENOMEM and EINVAL as expected outcome.
Fixes #390
I've already acked that on GitHub...
But just for a clarity, acked.
Signature · 2 lines
Cyril Hrubis [email protected]
PATCH 1/1 syscalls/mmap15: relax condition a bit
----- Original Message -----
Quoted 4 lines
Hi!
Quoted 3 lines
High address is arch specific, and it also occasionally changes as can be seen in history of this test.
Quoted 8 lines
Quoted 4 lines
Relax the condition and accept both ENOMEM and EINVAL as expected outcome.
Fixes #390I've already acked that on GitHub...
But just for a clarity, acked.
Pushed.
Quoted 5 lines
--
Cyril Hrubis
[email protected]