Skip to contentSkip to conversation

syscalls/mmap15: relax condition a bit

PATCH New Jan Stancek 2 participants 3 messages Sep 13, 2018 – Sep 14, 2018

lore
Share & tools
lore
#0 lore raw

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.

Fixes #390
---
 testcases/kernel/syscalls/mmap/mmap15.c | 5 ++---
 1 file changed, 2 insertions(+), 3 deletions(-)
testcases/kernel/syscalls/mmap/mmap15.c +2 -3
index eff27d6585e0..c8a77873a254 100644
@@ -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
#1 lore raw

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]
#2 lore raw

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 #390

I've already acked that on GitHub...

But just for a clarity, acked.

Pushed.

Quoted 5 lines

--
Cyril Hrubis
[email protected]