zsh-workers
 help / color / mirror / code / Atom feed
* D01 test failure for prompts in dumb terminal
@ 2023-02-02  1:02 Bart Schaefer
  2023-02-02 11:38 ` Daniel Shahaf
  0 siblings, 1 reply; 2+ messages in thread
From: Bart Schaefer @ 2023-02-02  1:02 UTC (permalink / raw)
  To: Zsh hackers list

Subsequent to workers/51297 --

In an xterm or gnome terminal, test D01 succeeds.

In a shell running in an emacs buffer, I get (trimmed from ZTST_verbose=1)

Running test: Equivalence of terminal colour settings (foreground colour)
Test case skipped: Missing terminfo module or non-colour terminal
Running test: Equivalence of terminal colour settings (background colour)
Test case skipped: Missing terminfo module or non-colour terminal
Running test: Attribute optimisation - preserve initial disabling of
attribute but drop useless later one
Test ./D01prompt.ztst failed: bad status 1, expected 0 from:
  A1=${(%):-%s}
  A2=${(%):-%u}
  A3=${(%):-%s%u%s}
  [[ $A3 = $A1$A2 && -n $A1 && -n $A2 ]]
Was testing: Attribute optimisation - preserve initial disabling of
attribute but drop useless later one

With ZTST_continue=1, that is the only test that fails.  Perhaps it
also needs to be skipped?


^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: D01 test failure for prompts in dumb terminal
  2023-02-02  1:02 D01 test failure for prompts in dumb terminal Bart Schaefer
@ 2023-02-02 11:38 ` Daniel Shahaf
  0 siblings, 0 replies; 2+ messages in thread
From: Daniel Shahaf @ 2023-02-02 11:38 UTC (permalink / raw)
  To: Zsh hackers list

Bart Schaefer wrote on Wed, Feb 01, 2023 at 17:02:00 -0800:
> Subsequent to workers/51297 --
> 
> In an xterm or gnome terminal, test D01 succeeds.
> 
> In a shell running in an emacs buffer, I get (trimmed from ZTST_verbose=1)
> 
> Running test: Equivalence of terminal colour settings (foreground colour)
> Test case skipped: Missing terminfo module or non-colour terminal
> Running test: Equivalence of terminal colour settings (background colour)
> Test case skipped: Missing terminfo module or non-colour terminal
> Running test: Attribute optimisation - preserve initial disabling of
> attribute but drop useless later one
> Test ./D01prompt.ztst failed: bad status 1, expected 0 from:
>   A1=${(%):-%s}
>   A2=${(%):-%u}
>   A3=${(%):-%s%u%s}
>   [[ $A3 = $A1$A2 && -n $A1 && -n $A2 ]]
> Was testing: Attribute optimisation - preserve initial disabling of
> attribute but drop useless later one

Any chance that $A1 or $A2 are the empty string?

> With ZTST_continue=1, that is the only test that fails.  Perhaps it
> also needs to be skipped?

Skipped upon what condition?  Skipping when $A1 is empty seems
reasonable, for example.

Cheers,

Daniel


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2023-02-02 11:39 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-02-02  1:02 D01 test failure for prompts in dumb terminal Bart Schaefer
2023-02-02 11:38 ` Daniel Shahaf

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).