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

Re: Fwd: A08 Test Failure



On Tue 31 Dec 2024, at 12:56, Vin Shelton wrote:
>> Pattern match failed, line 1:
>> -<[1-9][0-9]#000ns [1-9][0-9]#000ns
>> +>0ns 350000ns
>> Test ../../../src/zsh-2024-12-31/Test/A08time.ztst failed: error output differs from expected as shown above for:
>>   ( TIMEFMT='%nU %nS'; time (read -k3 -t0.1) )
>> Was testing: TIMEFMT %nU and %nS are limited to microsecond precision
>> ../../../src/zsh-2024-12-31/Test/A08time.ztst: test failed.

i guess either number can be zero for this test. actually if i run it via the
test harness the user time is 0 as reported but if i run it outside it's the
other way around (on arm64 bookworm). tbh i don't understand why. but ok

dana


diff --git a/Test/A08time.ztst b/Test/A08time.ztst
index 4a41cc76a..071038d1f 100644
--- a/Test/A08time.ztst
+++ b/Test/A08time.ztst
@@ -25,7 +25,7 @@
 
   ( TIMEFMT='%nU %nS'; time (read -k3 -t0.1) )
 1:TIMEFMT %nU and %nS are limited to microsecond precision
-*?[1-9][0-9]#000ns [1-9][0-9]#000ns
+*?(0|[1-9][0-9]#000)ns (0|[1-9][0-9]#000)ns
 
 # SECONDS (after - before) must be greater than the elapsed time, but not much
 # greater. 25% was picked arbitrarily as something that hopefully will prevent




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