Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
PATCH: rename user in test case to avoid failure where the user exists
- X-seq: zsh-workers 53244
- From: Oliver Kiddle <opk@xxxxxxx>
- To: Zsh workers <zsh-workers@xxxxxxx>
- Subject: PATCH: rename user in test case to avoid failure where the user exists
- Date: Sun, 17 Nov 2024 22:40:24 +0100
- Archived-at: <https://zsh.org/workers/53244>
- List-id: <zsh-workers.zsh.org>
I've had this patch sitting around since I tried the build on Haiku in
September. The one and only user on a Haiku system is named "user" and
the test case fails if there's an actual user on the system named
"user". That's probably more common that just Haiku. The patch just
switches to "zuser" and so would still fail on a system where that
exists as a user but that should at least be rarer.
Oliver
diff --git a/Test/Y01completion.ztst b/Test/Y01completion.ztst
index fc18b19a4..769b8c9e4 100644
--- a/Test/Y01completion.ztst
+++ b/Test/Y01completion.ztst
@@ -112,16 +112,16 @@ F:regression test workers/51641
>NO:{file2}
comptesteval $'zstyle -d \'*\' glob'
- comptesteval '_users () { compadd user1 user2 }'
+ comptesteval '_users () { compadd zuser1 zuser2 }'
comptest $': ~\t\t\t\t\t'
0:tilde
->line: {: ~user}{}
->line: {: ~user}{}
->NO:{user1}
->NO:{user2}
->line: {: ~user1}{}
->line: {: ~user2}{}
->line: {: ~user1}{}
+>line: {: ~zuser}{}
+>line: {: ~zuser}{}
+>NO:{zuser1}
+>NO:{zuser2}
+>line: {: ~zuser1}{}
+>line: {: ~zuser2}{}
+>line: {: ~zuser1}{}
comptesteval 'zsh_directory_name() { compadd "$expl[@]" -- name/1 name2 }'
comptest $': ~[\t\t\t\t'
Messages sorted by:
Reverse Date,
Date,
Thread,
Author