about summary refs log tree commit diff
diff options
context:
space:
mode:
authorDaniel Shahaf <d.s@daniel.shahaf.name>2020-04-02 00:10:34 +0000
committerDaniel Shahaf <d.s@daniel.shahaf.name>2020-04-02 00:10:42 +0000
commitc57d660764c368d6c1e0104f2b781c85e5a33f0b (patch)
tree4011dc109e437161fdb3c8b288ad005582550529
parent2bfe01df6f1110a3b25c17b9b9f730da15abb903 (diff)
downloadzsh-c57d660764c368d6c1e0104f2b781c85e5a33f0b.tar.gz
zsh-c57d660764c368d6c1e0104f2b781c85e5a33f0b.tar.xz
zsh-c57d660764c368d6c1e0104f2b781c85e5a33f0b.zip
unposted: Make test platform-independent.
Follow-up to the grandparent commit.
-rw-r--r--ChangeLog4
-rw-r--r--Test/D02glob.ztst4
2 files changed, 6 insertions, 2 deletions
diff --git a/ChangeLog b/ChangeLog
index 295e80079..0d43e8bae 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+2020-04-02  Daniel Shahaf  <d.s@daniel.shahaf.name>
+
+	* unposted: Test/D02glob.ztst: Make test platform-independent.
+
 2020-04-01  dana  <dana@dana.is>
 
 	* 45542: Test/P01privileged.ztst: Use test-directory owner for
diff --git a/Test/D02glob.ztst b/Test/D02glob.ztst
index c31eba3c0..f250244e7 100644
--- a/Test/D02glob.ztst
+++ b/Test/D02glob.ztst
@@ -690,9 +690,9 @@
  # This is a bit brittle as it depends on PATH_MAX.
  # We could use sysconf..
  bad_pwd="/${(l:16000:: :):-}"
- print ${bad_pwd:P} | wc -c | tr -d '\t '
+ print ${#${bad_pwd:P}}
 0:modifier ':P' with path too long
->16002
+>16001
 
  foo=a
  value="ac"