This patch changes the failure message given by the readahead, fadvise, and
madvise tests if the kernel is older than 2.6.30 to make it clear that the
test failure is assumed.  Until the fix for these tests is in kernel they will
be skipped because they can hang the kernel.

Signed-off-by: Eric B Munson <ebmun...@us.ibm.com>
---
 tests/fadvise_reserve.sh   |    2 +-
 tests/madvise_reserve.sh   |    2 +-
 tests/readahead_reserve.sh |    2 +-
 3 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/tests/fadvise_reserve.sh b/tests/fadvise_reserve.sh
index a62f9e9..f24944c 100755
--- a/tests/fadvise_reserve.sh
+++ b/tests/fadvise_reserve.sh
@@ -5,7 +5,7 @@
 # fadvise is known broken before 2.6.30
 compare_kvers `uname -r` "2.6.30"
 if [ $? -eq 1 ]; then
-       echo "FAIL      kernel bug"
+       echo "FAIL (assumed) kernel bug"
        exit $RC_FAIL
 else
        EXP_RC=$RC_PASS
diff --git a/tests/madvise_reserve.sh b/tests/madvise_reserve.sh
index 64eb229..4a88ade 100755
--- a/tests/madvise_reserve.sh
+++ b/tests/madvise_reserve.sh
@@ -5,7 +5,7 @@
 # madvise is known broken before 2.6.30
 compare_kvers `uname -r` "2.6.30"
 if [ $? -eq 1 ]; then
-       echo "FAIL      kernel bug"
+       echo "FAIL (assumed) kernel bug"
        exit $RC_FAIL
 else
        EXP_RC=$RC_PASS
diff --git a/tests/readahead_reserve.sh b/tests/readahead_reserve.sh
index 8dc0ad1..831cceb 100755
--- a/tests/readahead_reserve.sh
+++ b/tests/readahead_reserve.sh
@@ -5,7 +5,7 @@
 # readahead is known broken before 2.6.30
 compare_kvers `uname -r` "2.6.30"
 if [ $? -eq 1 ]; then
-       echo "FAIL      kernel bug"
+       echo "FAIL (assumed) kernel bug"
        exit $RC_FAIL
 else
        EXP_RC=$RC_PASS
-- 
1.6.1.2


------------------------------------------------------------------------------
Crystal Reports - New Free Runtime and 30 Day Trial
Check out the new simplified licensing option that enables 
unlimited royalty-free distribution of the report engine 
for externally facing server and web deployment. 
http://p.sf.net/sfu/businessobjects
_______________________________________________
Libhugetlbfs-devel mailing list
Libhugetlbfs-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/libhugetlbfs-devel

Reply via email to