tool_writeout: fix %time{} output for %s

Now testing both %s and %% in test 1981

Reported-by: wulin-nudt on github
Fixes #22038
Closes #22039
This commit is contained in:
Daniel Stenberg 2026-06-16 08:58:36 +02:00
parent 678e63934c
commit e0c6f4d4d6
No known key found for this signature in database
GPG key ID: 5CC908FDB71E12C2
2 changed files with 31 additions and 10 deletions

View file

@ -41,7 +41,7 @@ CURL_TIME=1754037103
LC_TIME=C
</setenv>
<command>
http://%HOSTIP:%HTTPPORT/%TESTNUMBER --write-out='Time: %time{%d/%b/%Y %H:%M:%S.%f %z %Z}\n' -s -o %LOGDIR/dump
http://%HOSTIP:%HTTPPORT/%TESTNUMBER --write-out='Time: %time{%d/%b/%Y %H:%M:%S.%f %z %Z%%s %s}\n' -s -o %LOGDIR/dump
</command>
</client>
@ -55,7 +55,7 @@ Accept: */*
</protocol>
<stdout mode="text">
Time: 01/Aug/2025 08:31:43.037103 +0000 UTC
Time: 01/Aug/2025 08:31:43.037103 +0000 UTC%s 1754037103
</stdout>
</verify>
</testcase>