From: Cyril Hrubis <chrubis@suse.cz>
To: Avinesh Kumar <akumar@suse.de>
Cc: ltp@lists.linux.it
Subject: Re: [LTP] [PATCH] syscalls/mmap06: Add testcases for EINVAL scenarios
Date: Fri, 8 Sep 2023 16:35:35 +0200 [thread overview]
Message-ID: <ZPsxN4hnjVbIIdvm@yuki> (raw)
In-Reply-To: <20230901055756.7057-1-akumar@suse.de>
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
--
Mailing list info: https://lists.linux.it/listinfo/ltp
prev parent reply other threads:[~2023-09-08 14:35 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-08-31 11:28 [LTP] [PATCH] syscalls/mmap22: Add new test for validating mmap's EINVAL scenarios Avinesh Kumar
2023-08-31 12:45 ` Cyril Hrubis
2023-09-01 5:57 ` [LTP] [PATCH] syscalls/mmap06: Add testcases for " Avinesh Kumar
2023-09-08 14:35 ` Cyril Hrubis [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=ZPsxN4hnjVbIIdvm@yuki \
--to=chrubis@suse.cz \
--cc=akumar@suse.de \
--cc=ltp@lists.linux.it \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox