Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: A second test release before 5.9 final?



Bart Schaefer wrote on Sun, May 01, 2022 at 09:50:14 -0700:
> On Sun, May 1, 2022 at 7:53 AM Daniel Shahaf <d.s@xxxxxxxxxxxxxxxxxx> wrote:
> >
> > Bart Schaefer wrote on Sat, 30 Apr 2022 18:31 +00:00:
> > > I've gone ahead with pushing 50150, 50149, 50136, and 50134
> >
> > Looks like none of these have tests.  It would be great if someone could
> > contribute these — either you if you have time, or if you don't, just
> > say so and someone else can jump in.
> 
> I'd appreciate it if you wrote the zstat test for 50150.

Sure.

diff --git a/Test/D07multibyte.ztst b/Test/D07multibyte.ztst
index cbd802f23..3c2dc082b 100644
--- a/Test/D07multibyte.ztst
+++ b/Test/D07multibyte.ztst
@@ -627,3 +627,14 @@ F:support character sets outside the portable 7-bit range.
 0:locale gets restored when locale parameters go out of scope (regression test for 45772)
 >❯
 >❯
+
+  # Subshell for zmodload isolation
+  (
+    zmodload zsh/stat
+    touch 50150-é 50150-Ą
+    # Using +size solely in order to make it easier to write the expectations
+    zstat +size -nor -- 50150-*
+  )
+0:(workers/50150) zsh/stat with Unicode and metafication
+>50150-Ą 0
+>50150-é 0

> The tests for 50101, 50126, 50136, and 50149 should be
> straightforward, I'll work on those.

Thank you.

> I'm not sure how to write a test for 50134 because it requires
> starting an interactive shell, waiting several seconds, then sending
> it a SIGINT and discovering whether it exited immediately or N seconds
> later.

*nod*

Daniel




Messages sorted by: Reverse Date, Date, Thread, Author