[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH] tests: avoid false positive upon kernel OOM-kill
From: |
Jim Meyering |
Subject: |
[PATCH] tests: avoid false positive upon kernel OOM-kill |
Date: |
Sat, 21 Jul 2012 12:55:17 +0200 |
FYI, without this, I was seeing a consistent failure
of the big-match test on an F17 system with plenty of memory,
but with most of it in use.
>From 8e4b6b3901084ce2d347f27073170acd26ac01ae Mon Sep 17 00:00:00 2001
From: Jim Meyering <address@hidden>
Date: Sat, 21 Jul 2012 12:54:07 +0200
Subject: [PATCH] tests: avoid false positive upon kernel OOM-kill
* tests/big-match (skip_diagnostic): Handle case of 139 (SIGKILL)
with no diagnostic.
---
tests/big-match | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/tests/big-match b/tests/big-match
index 51e0ffd..20928cf 100755
--- a/tests/big-match
+++ b/tests/big-match
@@ -19,7 +19,8 @@ for pattern in '^.*' '^.*x\(\)\1'; do
0,*) ;;
2,*': line too long for re_search')
skip_diagnostic='regular expression library cannot handle the test' ;;
- 2,*': memory exhausted')
+ 137,''|2,*': memory exhausted')
+ # The 137/no-diagnostic arises when the kernel OOM-kills grep.
skip_diagnostic='not enough main memory to run the test' ;;
*) fail=1 ;;
esac
--
1.7.11.2.194.g7bdb748
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [PATCH] tests: avoid false positive upon kernel OOM-kill,
Jim Meyering <=