about summary refs log tree commit diff
diff options
context:
space:
mode:
-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"