diff options
author | Bruno Haible <bruno@clisp.org> | 2023-01-05 22:13:47 -0800 |
---|---|---|
committer | Jim Meyering <meyering@fb.com> | 2023-01-05 22:13:47 -0800 |
commit | f5f2a237b2e212539611bf39157b22e77d0cdd25 (patch) | |
tree | 46d2d36a234a3d710d18c2fb002c31a6e68cc628 | |
parent | bc732310db2d21846810da0d633d400c43c45d63 (diff) | |
download | diffutils-f5f2a237b2e212539611bf39157b22e77d0cdd25.tar.gz |
tests: avoid a test failure when using Solaris 11.4's old grep
* tests/colors (nanosecond_zeros): Use a dumbed-down grep '\.'
in place of "grep -F ." to accommodate Solaris 11.4's old versions
of grep in the default PATH. Reported here:
https://lists.gnu.org/r/diffutils-devel/2023-01/msg00001.html
-rwxr-xr-x | tests/colors | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/colors b/tests/colors index d28a61c..a14e555 100755 --- a/tests/colors +++ b/tests/colors @@ -12,7 +12,7 @@ echo b > b # On systems lacking fractional timestamp support, diff -u does not print # a decimal point and 9-digit nanosecond suffix. -nanosecond_zeros=$(diff -u a b|grep -F . > /dev/null && echo .000000000) +nanosecond_zeros=$(diff -u a b|grep '\.' > /dev/null && echo .000000000) epoch='1970-01-01 00:00:00' touch -t 197001010000.00 a b |