zsh-workers
 help / color / mirror / code / Atom feed
* PATCH: rename user in test case to avoid failure where the user exists
@ 2024-11-17 21:40 Oliver Kiddle
  0 siblings, 0 replies; only message in thread
From: Oliver Kiddle @ 2024-11-17 21:40 UTC (permalink / raw)
  To: Zsh workers

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'


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2024-11-17 21:41 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-11-17 21:40 PATCH: rename user in test case to avoid failure where the user exists Oliver Kiddle

Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/zsh/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).