Skip to contentSkip to conversation

add config.h header file in mmap10 test

PATCH In review Caspar Zhang 2 participants 2 messages Mar 2, 2011 – Mar 3, 2011

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 add config.h header file in mmap10 test

Hi all, mmap10 test will check the macro "HAVE_MADV_MERGEABLE" to see if the kernel supports MADV_MERGEABLE argument which is available since 2.6.32, however in mmap10.c it didn't include the header file "config.h" which may cause "HAVE_MADV_MERGEABLE" undefined, so that the test will never be executed correctly. This patch is simple enough but do fixing the issue.

---
 testcases/kernel/syscalls/mmap/mmap10.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)
(quoted diff) +0 -0

b/testcases/kernel/syscalls/mmap/mmap10.c
index 3191580..58d5c9c 100644

testcases/kernel/syscalls/mmap/mmap10.c +1 -0
@@ -61,6 +61,7 @@
 #include <fcntl.h>
 #include "test.h"
 #include "usctest.h"
+#include "config.h"
 
 #define SIZE (5*1024*1024)
 
Signature · 8 lines
1.7.4.1


-- 
Quality Engineer (Kernel) in
Red Hat Software (Beijing) Co., R&D Branch
http://www.cn.redhat.com/
TEL: +86-10-62608150

From 4a396ad6d8886ee7a01a92198ef5e993303ee607 Mon Sep 17 00:00:00 2001
From: Caspar Zhang <[email protected]>
Date: Wed, 2 Mar 2011 18:06:10 +0800
Subject: [PATCH] add config.h header file in mmap10 test

Hi all, mmap10 test will check the macro "HAVE_MADV_MERGEABLE" to see if the kernel supports MADV_MERGEABLE argument which is available since 2.6.32, however in mmap10.c it didn't include the header file "config.h" which may cause "HAVE_MADV_MERGEABLE" undefined, so that the test will never be executed correctly. This patch is simple enough but do fixing the issue.

---
 testcases/kernel/syscalls/mmap/mmap10.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)
testcases/kernel/syscalls/mmap/mmap10.c +1 -0
index 3191580..58d5c9c 100644
@@ -61,6 +61,7 @@
 #include <fcntl.h>
 #include "test.h"
 #include "usctest.h"
+#include "config.h"
 
 #define SIZE (5*1024*1024)
 
Signature · 1 line
1.7.4.1

------------------------------------------------------------------------------
Free Software Download: Index, Search & Analyze Logs and other IT data in Real-Time with Splunk. Collect, index and harness all the fast moving IT data generated by your applications, servers and devices whether physical, virtual or in the cloud. Deliver compliance at lower cost and gain new business insights. http://p.sf.net/sfu/splunk-dev2dev

_______________________________________________
Ltp-list mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/ltp-list

#1 lore raw

Hi!

Commited.

Signature · 13 lines
Cyril Hrubis
[email protected]

------------------------------------------------------------------------------
Free Software Download: Index, Search & Analyze Logs and other IT data in 
Real-Time with Splunk. Collect, index and harness all the fast moving IT data 
generated by your applications, servers and devices whether physical, virtual
or in the cloud. Deliver compliance at lower cost and gain new business 
insights. http://p.sf.net/sfu/splunk-dev2dev 
_______________________________________________
Ltp-list mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/ltp-list