diff options
author | stephan <stephan@noemail.net> | 2025-05-13 18:58:56 +0000 |
---|---|---|
committer | stephan <stephan@noemail.net> | 2025-05-13 18:58:56 +0000 |
commit | 186fd3043626108be703b4a8b63d3af67b1635a0 (patch) | |
tree | b706d0226ba26c0e940a7978e9e24c61ba6a009b /test | |
parent | 0a0777d8458f2c73fd7512cb2c31e628944eb3c6 (diff) | |
download | sqlite-186fd3043626108be703b4a8b63d3af67b1635a0.tar.gz sqlite-186fd3043626108be703b4a8b63d3af67b1635a0.zip |
Adjust the strftime() test in test/date4.test to remove flags not supported in musl libc if that environment is detected.
FossilOrigin-Name: fc254c1eb784c79a371bf961945a18a680982cdcd3fdcd7e6bb481712fe21cf8
Diffstat (limited to 'test')
-rw-r--r-- | test/date4.test | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/test/date4.test b/test/date4.test index 56a9090b1..4e936b71c 100644 --- a/test/date4.test +++ b/test/date4.test @@ -24,7 +24,13 @@ ifcapable {!datetime} { } if {$tcl_platform(os)=="Linux"} { - set FMT {%d,%e,%F,%H,%k,%I,%l,%j,%m,%M,%u,%w,%W,%Y,%%,%P,%p,%U,%V,%G,%g} + if {"" eq [strftime {%P} 1]} { + # This is probably musl libc, which does not support + # %k, %l, %P + set FMT {%d,%e,%F,%H,%I,%j,%m,%M,%u,%w,%W,%Y,%%,%p,%U,%V,%G,%g} + } else { + set FMT {%d,%e,%F,%H,%k,%I,%l,%j,%m,%M,%u,%w,%W,%Y,%%,%P,%p,%U,%V,%G,%g} + } } else { set FMT {%d,%e,%F,%H,%I,%j,%p,%R,%u,%w,%W,%%} } |