1
0
mirror of https://github.com/sqlite/sqlite.git synced 2025-08-01 06:27:03 +03:00

Avoid running test cases involving ANSI control characters or Unicode

on Windows in a slave interpreter, as that combination does not work.

FossilOrigin-Name: f6745a7355c62ee64c08e23b795f437dd74add903b55e1255c1d03f9a811170d
This commit is contained in:
drh
2025-03-11 15:46:23 +00:00
parent a7829ecbdd
commit 72b5c6db35
7 changed files with 35 additions and 23 deletions

View File

@ -809,6 +809,15 @@ proc do_test {name cmd expected} {
flush stdout
}
# Like do_test except the test is not run in a slave interpreter
# on Windows because of issues with ANSI and UTF8 I/O on Win11.
#
proc do_test_with_ansi_output {name cmd expected} {
if {![info exists ::SLAVE] || $::tcl_platform(platform)!="windows"} {
uplevel 1 [list do_test $name $cmd $expected]
}
}
proc dumpbytes {s} {
set r ""
for {set i 0} {$i < [string length $s]} {incr i} {