grep-commit
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

grep branch, master, updated. v3.7-101-gaa8ca91


From: Jim Meyering
Subject: grep branch, master, updated. v3.7-101-gaa8ca91
Date: Sun, 3 Jul 2022 22:44:05 -0400 (EDT)

This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "grep".

The branch, master has been updated
       via  aa8ca91c0810b1fe62cb4ff76621b352ac7a9e6e (commit)
      from  b47a3fb1554cd7d9d69b9c662e8a91438f30025a (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
http://git.savannah.gnu.org/cgit/grep.git/commit/?id=aa8ca91c0810b1fe62cb4ff76621b352ac7a9e6e


commit aa8ca91c0810b1fe62cb4ff76621b352ac7a9e6e
Author: Jim Meyering <meyering@fb.com>
Date:   Sun Jul 3 11:46:09 2022 -0700

    tests: long-pattern-perf: better handle exhausted virtual memory
    
    * tests/long-pattern-perf: Don't fail due to a syntax error
    when one of the subtests exhausts virtual memory. The larger
    test (with a 2MiB regexp) needs about 870MiB of virtual memory.
    Require that each timing run exit with status 0, else fail with
    a framework_failure_. Reported by Bruno Haible in
    https://lists.gnu.org/r/grep-devel/2022-07/msg00006.html

diff --git a/tests/long-pattern-perf b/tests/long-pattern-perf
index 4557bbf..25893e9 100755
--- a/tests/long-pattern-perf
+++ b/tests/long-pattern-perf
@@ -32,8 +32,12 @@ seq 10000 50000 | tr -d '\012' > r || framework_failure_
 cat r r r r r r r r r r > re-10x || framework_failure_
 mv r re || framework_failure_
 
-base_ms=$(user_time_ 1 grep -f re in    ) || fail=1
-b10x_ms=$(user_time_ 1 grep -f re-10x in) || fail=1
+returns_ 0 user_time_ 1 grep -f re in > base-ms \
+    || framework_failure_ 'failed to compute baseline timing'
+base_ms=$(cat base-ms)
+returns_ 0 user_time_ 1 grep -f re-10x in > b10x-ms \
+    || framework_failure_ 'failed to compute 10x timing'
+b10x_ms=$(cat b10x-ms)
 
 # Increasing the length of the regular expression by a factor
 # of 10 should cause no more than a 10x increase in duration.

-----------------------------------------------------------------------

Summary of changes:
 tests/long-pattern-perf | 8 ++++++--
 1 file changed, 6 insertions(+), 2 deletions(-)


hooks/post-receive
-- 
grep



reply via email to

[Prev in Thread] Current Thread [Next in Thread]