From MAILER-DAEMON Mon May 02 01:57:32 2016
Received: from list by lists.gnu.org with archive (Exim 4.71)
	id 1ax6rM-0003o7-Gu
	for mharc-grep-commit@gnu.org; Mon, 02 May 2016 01:57:32 -0400
Received: from eggs.gnu.org ([2001:4830:134:3::10]:38698)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <eggert@cs.ucla.edu>) id 1ax6rD-0003ZP-N5
	for grep-commit@gnu.org; Mon, 02 May 2016 01:57:31 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <eggert@cs.ucla.edu>) id 1ax6r1-0002So-49
	for grep-commit@gnu.org; Mon, 02 May 2016 01:57:18 -0400
Received: from vcs.savannah.gnu.org ([208.118.235.72]:58588)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <eggert@cs.ucla.edu>) id 1ax6r0-0002SH-W2
	for grep-commit@gnu.org; Mon, 02 May 2016 01:57:11 -0400
Received: from eggert by vcs.savannah.gnu.org with local (Exim 4.72)
	(envelope-from <eggert@cs.ucla.edu>) id 1ax6qo-00024A-9R
	for grep-commit@gnu.org; Mon, 02 May 2016 05:56:58 +0000
Date: Mon, 02 May 2016 05:56:58 +0000
Message-Id: <E1ax6qo-00024A-9R@vcs.savannah.gnu.org>
To: grep-commit@gnu.org
Subject: grep branch, master, updated. v2.25-6-g2e06403
X-Git-Refname: refs/heads/master
X-Git-Reftype: branch
X-Git-Oldrev: d1060aa9f7d1daca37656a35751241ddce67ae75
X-Git-Newrev: 2e0640374ba0c1eaa0ef6258a6c2db747a962643
From: Paul Eggert <eggert@cs.ucla.edu>
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x
X-Received-From: 208.118.235.72
X-BeenThere: grep-commit@gnu.org
X-Mailman-Version: 2.1.21
Precedence: list
List-Id: CVS commit notices for GNU grep <grep-commit.gnu.org>
List-Unsubscribe: <https://lists.gnu.org/mailman/options/grep-commit>,
	<mailto:grep-commit-request@gnu.org?subject=unsubscribe>
List-Archive: <http://lists.gnu.org/archive/html/grep-commit/>
List-Post: <mailto:grep-commit@gnu.org>
List-Help: <mailto:grep-commit-request@gnu.org?subject=help>
List-Subscribe: <https://lists.gnu.org/mailman/listinfo/grep-commit>,
	<mailto:grep-commit-request@gnu.org?subject=subscribe>
X-List-Received-Date: Mon, 02 May 2016 05:57:31 -0000

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  2e0640374ba0c1eaa0ef6258a6c2db747a962643 (commit)
       via  f1a048c695b60c4188305efd95836ae3e367bc7b (commit)
       via  5170412f74920661815584dd9f9ebbeaa8433016 (commit)
       via  724ac5564bc8431b28a37e556a2adf27d7b3c74d (commit)
       via  af6af288eac28951b5eee1eaaf373e22b2193b7b (commit)
      from  d1060aa9f7d1daca37656a35751241ddce67ae75 (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=2e0640374ba0c1eaa0ef6258a6c2db747a962643


commit 2e0640374ba0c1eaa0ef6258a6c2db747a962643
Author: Paul Eggert <eggert@cs.ucla.edu>
Date:   Sun May 1 22:56:40 2016 -0700

    dfa: prefer bool for boolean
    
    * src/dfa.c (syntax_bits_set, dfasyntax, using_utf8, FETCH_WC)
    (POP_LEX_STATE, State_transition):
    * src/dfa.h (using_utf_8):
    Use bool for boolean.

diff --git a/src/dfa.c b/src/dfa.c
index a2aee29..c57b33a 100644
--- a/src/dfa.c
+++ b/src/dfa.c
@@ -641,7 +641,8 @@ charclass_index (charclass const s)
 }
 
 /* Syntax bits controlling the behavior of the lexical analyzer.  */
-static reg_syntax_t syntax_bits, syntax_bits_set;
+static reg_syntax_t syntax_bits;
+static bool syntax_bits_set;
 
 /* Flag for case-folding letters into sets.  */
 static bool case_fold;
@@ -693,7 +694,7 @@ void
 dfasyntax (reg_syntax_t bits, bool fold, unsigned char eol)
 {
   int i;
-  syntax_bits_set = 1;
+  syntax_bits_set = true;
   syntax_bits = bits;
   case_fold = fold;
   eolbyte = eol;
@@ -757,7 +758,7 @@ setbit_case_fold_c (int b, charclass c)
 
 /* UTF-8 encoding allows some optimizations that we can't otherwise
    assume in a multibyte encoding.  */
-int
+bool
 using_utf8 (void)
 {
   static int utf8 = -1;
@@ -858,7 +859,7 @@ static wint_t wctok;		/* Wide character representation of the current
         lexptr += nbytes;			\
         lexleft -= nbytes;			\
       }						\
-  } while (0)
+  } while (false)
 
 #ifndef MIN
 # define MIN(a,b) ((a) < (b) ? (a) : (b))
@@ -1211,7 +1212,7 @@ parse_bracket_exp (void)
       lexptr = lexptr_saved;			\
       lexleft = lexleft_saved;			\
     }						\
-  while (0)
+  while (false)
 
 static token
 lex (void)
@@ -3327,7 +3328,7 @@ dfaexec_main (struct dfa *d, char const *begin, char *end, bool allow_nl,
                                                                         \
               mbp = p;                                                  \
               trans = d->trans;                                         \
-  } while (0)
+  } while (false)
 
               State_transition();
             }
diff --git a/src/dfa.h b/src/dfa.h
index ce267ec..60da0e4 100644
--- a/src/dfa.h
+++ b/src/dfa.h
@@ -100,4 +100,4 @@ extern void dfawarn (const char *);
    The user must supply a dfaerror.  */
 extern _Noreturn void dfaerror (const char *);
 
-extern int using_utf8 (void);
+extern bool using_utf8 (void);

http://git.savannah.gnu.org/cgit/grep.git/commit/?id=f1a048c695b60c4188305efd95836ae3e367bc7b


commit 2e0640374ba0c1eaa0ef6258a6c2db747a962643
Author: Paul Eggert <eggert@cs.ucla.edu>
Date:   Sun May 1 22:56:40 2016 -0700

    dfa: prefer bool for boolean
    
    * src/dfa.c (syntax_bits_set, dfasyntax, using_utf8, FETCH_WC)
    (POP_LEX_STATE, State_transition):
    * src/dfa.h (using_utf_8):
    Use bool for boolean.

diff --git a/src/dfa.c b/src/dfa.c
index a2aee29..c57b33a 100644
--- a/src/dfa.c
+++ b/src/dfa.c
@@ -641,7 +641,8 @@ charclass_index (charclass const s)
 }
 
 /* Syntax bits controlling the behavior of the lexical analyzer.  */
-static reg_syntax_t syntax_bits, syntax_bits_set;
+static reg_syntax_t syntax_bits;
+static bool syntax_bits_set;
 
 /* Flag for case-folding letters into sets.  */
 static bool case_fold;
@@ -693,7 +694,7 @@ void
 dfasyntax (reg_syntax_t bits, bool fold, unsigned char eol)
 {
   int i;
-  syntax_bits_set = 1;
+  syntax_bits_set = true;
   syntax_bits = bits;
   case_fold = fold;
   eolbyte = eol;
@@ -757,7 +758,7 @@ setbit_case_fold_c (int b, charclass c)
 
 /* UTF-8 encoding allows some optimizations that we can't otherwise
    assume in a multibyte encoding.  */
-int
+bool
 using_utf8 (void)
 {
   static int utf8 = -1;
@@ -858,7 +859,7 @@ static wint_t wctok;		/* Wide character representation of the current
         lexptr += nbytes;			\
         lexleft -= nbytes;			\
       }						\
-  } while (0)
+  } while (false)
 
 #ifndef MIN
 # define MIN(a,b) ((a) < (b) ? (a) : (b))
@@ -1211,7 +1212,7 @@ parse_bracket_exp (void)
       lexptr = lexptr_saved;			\
       lexleft = lexleft_saved;			\
     }						\
-  while (0)
+  while (false)
 
 static token
 lex (void)
@@ -3327,7 +3328,7 @@ dfaexec_main (struct dfa *d, char const *begin, char *end, bool allow_nl,
                                                                         \
               mbp = p;                                                  \
               trans = d->trans;                                         \
-  } while (0)
+  } while (false)
 
               State_transition();
             }
diff --git a/src/dfa.h b/src/dfa.h
index ce267ec..60da0e4 100644
--- a/src/dfa.h
+++ b/src/dfa.h
@@ -100,4 +100,4 @@ extern void dfawarn (const char *);
    The user must supply a dfaerror.  */
 extern _Noreturn void dfaerror (const char *);
 
-extern int using_utf8 (void);
+extern bool using_utf8 (void);

http://git.savannah.gnu.org/cgit/grep.git/commit/?id=5170412f74920661815584dd9f9ebbeaa8433016


commit 2e0640374ba0c1eaa0ef6258a6c2db747a962643
Author: Paul Eggert <eggert@cs.ucla.edu>
Date:   Sun May 1 22:56:40 2016 -0700

    dfa: prefer bool for boolean
    
    * src/dfa.c (syntax_bits_set, dfasyntax, using_utf8, FETCH_WC)
    (POP_LEX_STATE, State_transition):
    * src/dfa.h (using_utf_8):
    Use bool for boolean.

diff --git a/src/dfa.c b/src/dfa.c
index a2aee29..c57b33a 100644
--- a/src/dfa.c
+++ b/src/dfa.c
@@ -641,7 +641,8 @@ charclass_index (charclass const s)
 }
 
 /* Syntax bits controlling the behavior of the lexical analyzer.  */
-static reg_syntax_t syntax_bits, syntax_bits_set;
+static reg_syntax_t syntax_bits;
+static bool syntax_bits_set;
 
 /* Flag for case-folding letters into sets.  */
 static bool case_fold;
@@ -693,7 +694,7 @@ void
 dfasyntax (reg_syntax_t bits, bool fold, unsigned char eol)
 {
   int i;
-  syntax_bits_set = 1;
+  syntax_bits_set = true;
   syntax_bits = bits;
   case_fold = fold;
   eolbyte = eol;
@@ -757,7 +758,7 @@ setbit_case_fold_c (int b, charclass c)
 
 /* UTF-8 encoding allows some optimizations that we can't otherwise
    assume in a multibyte encoding.  */
-int
+bool
 using_utf8 (void)
 {
   static int utf8 = -1;
@@ -858,7 +859,7 @@ static wint_t wctok;		/* Wide character representation of the current
         lexptr += nbytes;			\
         lexleft -= nbytes;			\
       }						\
-  } while (0)
+  } while (false)
 
 #ifndef MIN
 # define MIN(a,b) ((a) < (b) ? (a) : (b))
@@ -1211,7 +1212,7 @@ parse_bracket_exp (void)
       lexptr = lexptr_saved;			\
       lexleft = lexleft_saved;			\
     }						\
-  while (0)
+  while (false)
 
 static token
 lex (void)
@@ -3327,7 +3328,7 @@ dfaexec_main (struct dfa *d, char const *begin, char *end, bool allow_nl,
                                                                         \
               mbp = p;                                                  \
               trans = d->trans;                                         \
-  } while (0)
+  } while (false)
 
               State_transition();
             }
diff --git a/src/dfa.h b/src/dfa.h
index ce267ec..60da0e4 100644
--- a/src/dfa.h
+++ b/src/dfa.h
@@ -100,4 +100,4 @@ extern void dfawarn (const char *);
    The user must supply a dfaerror.  */
 extern _Noreturn void dfaerror (const char *);
 
-extern int using_utf8 (void);
+extern bool using_utf8 (void);

http://git.savannah.gnu.org/cgit/grep.git/commit/?id=724ac5564bc8431b28a37e556a2adf27d7b3c74d


commit 2e0640374ba0c1eaa0ef6258a6c2db747a962643
Author: Paul Eggert <eggert@cs.ucla.edu>
Date:   Sun May 1 22:56:40 2016 -0700

    dfa: prefer bool for boolean
    
    * src/dfa.c (syntax_bits_set, dfasyntax, using_utf8, FETCH_WC)
    (POP_LEX_STATE, State_transition):
    * src/dfa.h (using_utf_8):
    Use bool for boolean.

diff --git a/src/dfa.c b/src/dfa.c
index a2aee29..c57b33a 100644
--- a/src/dfa.c
+++ b/src/dfa.c
@@ -641,7 +641,8 @@ charclass_index (charclass const s)
 }
 
 /* Syntax bits controlling the behavior of the lexical analyzer.  */
-static reg_syntax_t syntax_bits, syntax_bits_set;
+static reg_syntax_t syntax_bits;
+static bool syntax_bits_set;
 
 /* Flag for case-folding letters into sets.  */
 static bool case_fold;
@@ -693,7 +694,7 @@ void
 dfasyntax (reg_syntax_t bits, bool fold, unsigned char eol)
 {
   int i;
-  syntax_bits_set = 1;
+  syntax_bits_set = true;
   syntax_bits = bits;
   case_fold = fold;
   eolbyte = eol;
@@ -757,7 +758,7 @@ setbit_case_fold_c (int b, charclass c)
 
 /* UTF-8 encoding allows some optimizations that we can't otherwise
    assume in a multibyte encoding.  */
-int
+bool
 using_utf8 (void)
 {
   static int utf8 = -1;
@@ -858,7 +859,7 @@ static wint_t wctok;		/* Wide character representation of the current
         lexptr += nbytes;			\
         lexleft -= nbytes;			\
       }						\
-  } while (0)
+  } while (false)
 
 #ifndef MIN
 # define MIN(a,b) ((a) < (b) ? (a) : (b))
@@ -1211,7 +1212,7 @@ parse_bracket_exp (void)
       lexptr = lexptr_saved;			\
       lexleft = lexleft_saved;			\
     }						\
-  while (0)
+  while (false)
 
 static token
 lex (void)
@@ -3327,7 +3328,7 @@ dfaexec_main (struct dfa *d, char const *begin, char *end, bool allow_nl,
                                                                         \
               mbp = p;                                                  \
               trans = d->trans;                                         \
-  } while (0)
+  } while (false)
 
               State_transition();
             }
diff --git a/src/dfa.h b/src/dfa.h
index ce267ec..60da0e4 100644
--- a/src/dfa.h
+++ b/src/dfa.h
@@ -100,4 +100,4 @@ extern void dfawarn (const char *);
    The user must supply a dfaerror.  */
 extern _Noreturn void dfaerror (const char *);
 
-extern int using_utf8 (void);
+extern bool using_utf8 (void);

http://git.savannah.gnu.org/cgit/grep.git/commit/?id=af6af288eac28951b5eee1eaaf373e22b2193b7b


commit 2e0640374ba0c1eaa0ef6258a6c2db747a962643
Author: Paul Eggert <eggert@cs.ucla.edu>
Date:   Sun May 1 22:56:40 2016 -0700

    dfa: prefer bool for boolean
    
    * src/dfa.c (syntax_bits_set, dfasyntax, using_utf8, FETCH_WC)
    (POP_LEX_STATE, State_transition):
    * src/dfa.h (using_utf_8):
    Use bool for boolean.

diff --git a/src/dfa.c b/src/dfa.c
index a2aee29..c57b33a 100644
--- a/src/dfa.c
+++ b/src/dfa.c
@@ -641,7 +641,8 @@ charclass_index (charclass const s)
 }
 
 /* Syntax bits controlling the behavior of the lexical analyzer.  */
-static reg_syntax_t syntax_bits, syntax_bits_set;
+static reg_syntax_t syntax_bits;
+static bool syntax_bits_set;
 
 /* Flag for case-folding letters into sets.  */
 static bool case_fold;
@@ -693,7 +694,7 @@ void
 dfasyntax (reg_syntax_t bits, bool fold, unsigned char eol)
 {
   int i;
-  syntax_bits_set = 1;
+  syntax_bits_set = true;
   syntax_bits = bits;
   case_fold = fold;
   eolbyte = eol;
@@ -757,7 +758,7 @@ setbit_case_fold_c (int b, charclass c)
 
 /* UTF-8 encoding allows some optimizations that we can't otherwise
    assume in a multibyte encoding.  */
-int
+bool
 using_utf8 (void)
 {
   static int utf8 = -1;
@@ -858,7 +859,7 @@ static wint_t wctok;		/* Wide character representation of the current
         lexptr += nbytes;			\
         lexleft -= nbytes;			\
       }						\
-  } while (0)
+  } while (false)
 
 #ifndef MIN
 # define MIN(a,b) ((a) < (b) ? (a) : (b))
@@ -1211,7 +1212,7 @@ parse_bracket_exp (void)
       lexptr = lexptr_saved;			\
       lexleft = lexleft_saved;			\
     }						\
-  while (0)
+  while (false)
 
 static token
 lex (void)
@@ -3327,7 +3328,7 @@ dfaexec_main (struct dfa *d, char const *begin, char *end, bool allow_nl,
                                                                         \
               mbp = p;                                                  \
               trans = d->trans;                                         \
-  } while (0)
+  } while (false)
 
               State_transition();
             }
diff --git a/src/dfa.h b/src/dfa.h
index ce267ec..60da0e4 100644
--- a/src/dfa.h
+++ b/src/dfa.h
@@ -100,4 +100,4 @@ extern void dfawarn (const char *);
    The user must supply a dfaerror.  */
 extern _Noreturn void dfaerror (const char *);
 
-extern int using_utf8 (void);
+extern bool using_utf8 (void);

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

Summary of changes:
 NEWS                    |    2 ++
 src/dfa.c               |   66 ++++++++++++++++++++++++++++------------------
 src/dfa.h               |   30 +++++----------------
 src/dfasearch.c         |    2 +-
 src/grep.c              |   67 +++++++++++++++++++++++++++--------------------
 tests/Makefile.am       |    1 +
 tests/grep-dev-null-out |   11 ++++++++
 tests/status            |    4 +--
 8 files changed, 104 insertions(+), 79 deletions(-)
 create mode 100755 tests/grep-dev-null-out


hooks/post-receive
-- 
grep


From MAILER-DAEMON Mon May 02 11:58:52 2016
Received: from list by lists.gnu.org with archive (Exim 4.71)
	id 1axGFI-0007Ky-Ez
	for mharc-grep-commit@gnu.org; Mon, 02 May 2016 11:58:52 -0400
Received: from eggs.gnu.org ([2001:4830:134:3::10]:60232)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <jim@meyering.net>) id 1axGF9-0007AD-Qg
	for grep-commit@gnu.org; Mon, 02 May 2016 11:58:50 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <jim@meyering.net>) id 1axGEp-0007Y3-Bz
	for grep-commit@gnu.org; Mon, 02 May 2016 11:58:38 -0400
Received: from vcs.savannah.gnu.org ([208.118.235.72]:36150)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <jim@meyering.net>) id 1axGEp-0007Wl-8d
	for grep-commit@gnu.org; Mon, 02 May 2016 11:58:23 -0400
Received: from meyering by vcs.savannah.gnu.org with local (Exim 4.72)
	(envelope-from <jim@meyering.net>) id 1axGEi-00065k-Dp
	for grep-commit@gnu.org; Mon, 02 May 2016 15:58:16 +0000
Date: Mon, 02 May 2016 15:58:16 +0000
Message-Id: <E1axGEi-00065k-Dp@vcs.savannah.gnu.org>
To: grep-commit@gnu.org
Subject: grep branch, master, updated. v2.25-7-gb6e5c5f
X-Git-Refname: refs/heads/master
X-Git-Reftype: branch
X-Git-Oldrev: 2e0640374ba0c1eaa0ef6258a6c2db747a962643
X-Git-Newrev: b6e5c5f50037bf97c81b95d95c51f3f34fee2ec7
From: Jim Meyering <jim@meyering.net>
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x
X-Received-From: 208.118.235.72
X-BeenThere: grep-commit@gnu.org
X-Mailman-Version: 2.1.21
Precedence: list
List-Id: CVS commit notices for GNU grep <grep-commit.gnu.org>
List-Unsubscribe: <https://lists.gnu.org/mailman/options/grep-commit>,
	<mailto:grep-commit-request@gnu.org?subject=unsubscribe>
List-Archive: <http://lists.gnu.org/archive/html/grep-commit/>
List-Post: <mailto:grep-commit@gnu.org>
List-Help: <mailto:grep-commit-request@gnu.org?subject=help>
List-Subscribe: <https://lists.gnu.org/mailman/listinfo/grep-commit>,
	<mailto:grep-commit-request@gnu.org?subject=subscribe>
X-List-Received-Date: Mon, 02 May 2016 15:58:50 -0000

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  b6e5c5f50037bf97c81b95d95c51f3f34fee2ec7 (commit)
      from  2e0640374ba0c1eaa0ef6258a6c2db747a962643 (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=b6e5c5f50037bf97c81b95d95c51f3f34fee2ec7


commit b6e5c5f50037bf97c81b95d95c51f3f34fee2ec7
Author: Jim Meyering <meyering@fb.com>
Date:   Mon May 2 08:57:49 2016 -0700

    maint: avoid NEWS syntax-check failure
    
    * NEWS: Move the mention of the /dev/null speed-up from the
    block for 2.25 into the current, in-preparation block.

diff --git a/NEWS b/NEWS
index 5a2225a..cb035dc 100644
--- a/NEWS
+++ b/NEWS
@@ -2,6 +2,10 @@ GNU grep NEWS                                    -*- outline -*-
 
 * Noteworthy changes in release ?.? (????-??-??) [?]
 
+** Improvements
+
+  grep can be much faster now when standard output is /dev/null.
+
 
 * Noteworthy changes in release 2.25 (2016-04-21) [stable]
 
@@ -21,8 +25,6 @@ GNU grep NEWS                                    -*- outline -*-
 
 ** Improvements
 
-  grep can be much faster now when standard output is /dev/null.
-
   grep now outputs details more consistently when reporting a write error.
   E.g., "grep: write error: No space left on device" rather than just
   "grep: write error".

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

Summary of changes:
 NEWS |    6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)


hooks/post-receive
-- 
grep


From MAILER-DAEMON Mon May 16 11:42:51 2016
Received: from list by lists.gnu.org with archive (Exim 4.71)
	id 1b2KfT-0003rw-7g
	for mharc-grep-commit@gnu.org; Mon, 16 May 2016 11:42:51 -0400
Received: from eggs.gnu.org ([2001:4830:134:3::10]:59209)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <jim@meyering.net>) id 1b2KfN-0003fW-Do
	for grep-commit@gnu.org; Mon, 16 May 2016 11:42:47 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <jim@meyering.net>) id 1b2KfK-00083L-Oo
	for grep-commit@gnu.org; Mon, 16 May 2016 11:42:44 -0400
Received: from vcs.savannah.gnu.org ([208.118.235.72]:34382)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <jim@meyering.net>) id 1b2KfK-00083G-Kd
	for grep-commit@gnu.org; Mon, 16 May 2016 11:42:42 -0400
Received: by vcs.savannah.gnu.org (Postfix, from userid 69698)
	id 42F59220154; Mon, 16 May 2016 15:42:42 +0000 (UTC)
To: grep-commit@gnu.org
Subject: grep branch, master, updated. v2.25-8-gc752662
X-Git-Refname: refs/heads/master
X-Git-Reftype: branch
X-Git-Oldrev: b6e5c5f50037bf97c81b95d95c51f3f34fee2ec7
X-Git-Newrev: c7526623f458084cbe947f0e1b43f328481b2ca3
Message-Id: <20160516154242.42F59220154@vcs.savannah.gnu.org>
Date: Mon, 16 May 2016 15:42:42 +0000 (UTC)
From: jim@meyering.net (Jim Meyering)
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x
X-Received-From: 208.118.235.72
X-BeenThere: grep-commit@gnu.org
X-Mailman-Version: 2.1.21
Precedence: list
List-Id: CVS commit notices for GNU grep <grep-commit.gnu.org>
List-Unsubscribe: <https://lists.gnu.org/mailman/options/grep-commit>,
	<mailto:grep-commit-request@gnu.org?subject=unsubscribe>
List-Archive: <http://lists.gnu.org/archive/html/grep-commit/>
List-Post: <mailto:grep-commit@gnu.org>
List-Help: <mailto:grep-commit-request@gnu.org?subject=help>
List-Subscribe: <https://lists.gnu.org/mailman/listinfo/grep-commit>,
	<mailto:grep-commit-request@gnu.org?subject=subscribe>
X-List-Received-Date: Mon, 16 May 2016 15:42:48 -0000

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  c7526623f458084cbe947f0e1b43f328481b2ca3 (commit)
      from  b6e5c5f50037bf97c81b95d95c51f3f34fee2ec7 (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=c7526623f458084cbe947f0e1b43f328481b2ca3


commit c7526623f458084cbe947f0e1b43f328481b2ca3
Author: Jim Meyering <meyering@fb.com>
Date:   Fri May 13 08:43:53 2016 -0700

    maint: do not let a LANGUAGE envvar setting perturb tests
    
    E.g., running "LANGUAGE=eo make check" would provoke a failure
    of the encoding-error test, on systems that mistakenly let that
    envvar trump the setting of LC_ALL.
    * tests/envvar-check: New file, copied from coreutils.
    * tests/Makefile.am (EXTRA_DIST): Add it.
    (TESTS_ENVIRONMENT): Source it.
    Also select TMPDIR as we do for coreutils tests.
    Reported by Benno Schulenberg in http://bugs.gnu.org/23527.

diff --git a/tests/Makefile.am b/tests/Makefile.am
index 7effa57..38b0e32 100644
--- a/tests/Makefile.am
+++ b/tests/Makefile.am
@@ -151,6 +151,7 @@ EXTRA_DIST =					\
   $(TESTS)					\
   bre.awk					\
   bre.tests					\
+  envvar-check					\
   ere.awk					\
   ere.tests					\
   init.cfg					\
@@ -166,7 +167,9 @@ EXTRA_DIST =					\
 MALLOC_PERTURB_ = 1
 
 TESTS_ENVIRONMENT =				\
-  tmp__=$$TMPDIR; test -d "$$tmp__" || tmp__=.;	\
+  tmp__=$${TMPDIR-/tmp};			\
+  test -d "$$tmp__" && test -w "$$tmp__" || tmp__=.;	\
+  . $(srcdir)/envvar-check;			\
   TMPDIR=$$tmp__; export TMPDIR;		\
 						\
   if test -n "$$BASH_VERSION" || (eval "export v=x") 2>/dev/null; then \
diff --git a/tests/envvar-check b/tests/envvar-check
new file mode 100644
index 0000000..16d7069
--- /dev/null
+++ b/tests/envvar-check
@@ -0,0 +1,63 @@
+# -*- sh -*-
+# Check environment variables for sane values while testing.
+
+# Copyright (C) 2000-2016 Free Software Foundation, Inc.
+
+# This program is free software: you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation, either version 3 of the License, or
+# (at your option) any later version.
+
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+# GNU General Public License for more details.
+
+# You should have received a copy of the GNU General Public License
+# along with this program.  If not, see <http://www.gnu.org/licenses/>.
+
+if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
+  as_unset=unset
+else
+  as_unset=false
+fi
+
+envvar_check_fail=0
+vars='
+  _POSIX2_VERSION
+  _STDBUF_E
+  _STDBUF_I
+  _STDBUF_O
+  BASH_ENV
+  BLOCKSIZE
+  BLOCK_SIZE
+  CDPATH
+  COLUMNS
+  DF_BLOCK_SIZE
+  DU_BLOCK_SIZE
+  ENV
+  LANGUAGE
+  LS_BLOCK_SIZE
+  LS_COLORS
+  OMP_NUM_THREADS
+  POSIXLY_CORRECT
+  QUOTING_STYLE
+  SIMPLE_BACKUP_SUFFIX
+  TABSIZE
+  TERM
+  COLORTERM
+  TIME_STYLE
+  TMPDIR
+  VERSION_CONTROL
+'
+for var in $vars
+do
+  $as_unset $var
+  if eval test \"\${$var+set}\" = set; then
+    echo "$0: the $var environment variable is set --" \
+      ' unset it and rerun this test' >&2
+    envvar_check_fail=1
+  fi
+done
+
+test "$envvar_check_fail" = 1 && exit 1

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

Summary of changes:
 tests/Makefile.am  |    5 ++++-
 tests/envvar-check |   63 ++++++++++++++++++++++++++++++++++++++++++++++++++++
 2 files changed, 67 insertions(+), 1 deletion(-)
 create mode 100644 tests/envvar-check


hooks/post-receive
-- 
grep


