* [LTP] [PATCH] move_pages12: fix Warning on system which not support hugepage
@ 2017-05-08 5:42 Li Wang
2017-05-09 12:39 ` Jan Stancek
0 siblings, 1 reply; 2+ messages in thread
From: Li Wang @ 2017-05-08 5:42 UTC (permalink / raw)
To: ltp
WARNING:
tst_test.c:847: INFO: Timeout per run is 0h 05m 00s
move_pages_support.c:407: CONF: at least 2 allowed NUMA nodes are required
safe_file_ops.c:301: WARN: Failed to close FILE '/proc/sys/vm/nr_hugepages' at move_pages12.c:159: EOPNOTSUPP
Signed-off-by: Li Wang <liwang@redhat.com>
---
testcases/kernel/syscalls/move_pages/move_pages12.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/testcases/kernel/syscalls/move_pages/move_pages12.c b/testcases/kernel/syscalls/move_pages/move_pages12.c
index de00346..f93311f 100644
--- a/testcases/kernel/syscalls/move_pages/move_pages12.c
+++ b/testcases/kernel/syscalls/move_pages/move_pages12.c
@@ -158,7 +158,8 @@ static void setup(void)
static void cleanup(void)
{
- SAFE_FILE_PRINTF(PATH_NR_HUGEPAGES, "%ld", orig_hugepages);
+ if (!access(PATH_HUGEPAGES, F_OK))
+ SAFE_FILE_PRINTF(PATH_NR_HUGEPAGES, "%ld", orig_hugepages);
}
static struct tst_test test = {
--
2.9.3
^ permalink raw reply related [flat|nested] 2+ messages in thread
* [LTP] [PATCH] move_pages12: fix Warning on system which not support hugepage
2017-05-08 5:42 [LTP] [PATCH] move_pages12: fix Warning on system which not support hugepage Li Wang
@ 2017-05-09 12:39 ` Jan Stancek
0 siblings, 0 replies; 2+ messages in thread
From: Jan Stancek @ 2017-05-09 12:39 UTC (permalink / raw)
To: ltp
----- Original Message -----
> WARNING:
> tst_test.c:847: INFO: Timeout per run is 0h 05m 00s
> move_pages_support.c:407: CONF: at least 2 allowed NUMA nodes are required
> safe_file_ops.c:301: WARN: Failed to close FILE '/proc/sys/vm/nr_hugepages'
> at move_pages12.c:159: EOPNOTSUPP
>
> Signed-off-by: Li Wang <liwang@redhat.com>
> ---
Pushed.
Thanks,
Jan
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2017-05-09 12:39 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-05-08 5:42 [LTP] [PATCH] move_pages12: fix Warning on system which not support hugepage Li Wang
2017-05-09 12:39 ` Jan Stancek
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox