summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBruno Haible <bruno@clisp.org>2023-01-05 22:13:47 -0800
committerJim Meyering <meyering@fb.com>2023-01-05 22:13:47 -0800
commitf5f2a237b2e212539611bf39157b22e77d0cdd25 (patch)
tree46d2d36a234a3d710d18c2fb002c31a6e68cc628
parentbc732310db2d21846810da0d633d400c43c45d63 (diff)
downloaddiffutils-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-xtests/colors2
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