diff options
author | Jim Meyering <meyering@redhat.com> | 2012-07-21 12:54:07 +0200 |
---|---|---|
committer | Jim Meyering <meyering@redhat.com> | 2012-07-21 12:54:07 +0200 |
commit | 8e4b6b3901084ce2d347f27073170acd26ac01ae (patch) | |
tree | 0081d13a510149e720db32162a1faebde8fcf6a3 | |
parent | ee6edba5edb22151cda7d9ca915a2294c60e952d (diff) | |
download | grep-8e4b6b3901084ce2d347f27073170acd26ac01ae.tar.gz |
tests: avoid false positive upon kernel OOM-kill
* tests/big-match (skip_diagnostic): Handle case of 139 (SIGKILL)
with no diagnostic.
-rwxr-xr-x | tests/big-match | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/big-match b/tests/big-match index 51e0ffd8..20928cf7 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 |