mirror of
https://github.com/glebarez/go-sqlite.git
synced 2025-10-16 12:51:23 +08:00
regenerate darwin/arm64
This commit is contained in:
15
testdata/tcl/tester.tcl
vendored
15
testdata/tcl/tester.tcl
vendored
@@ -174,8 +174,14 @@ proc get_pwd {} {
|
||||
# case of the result to what Tcl considers canonical, which would
|
||||
# defeat the purpose of this procedure.
|
||||
#
|
||||
if {[info exists ::env(ComSpec)]} {
|
||||
set comSpec $::env(ComSpec)
|
||||
} else {
|
||||
# NOTE: Hard-code the typical default value.
|
||||
set comSpec {C:\Windows\system32\cmd.exe}
|
||||
}
|
||||
return [string map [list \\ /] \
|
||||
[string trim [exec -- $::env(ComSpec) /c cd ]]]
|
||||
[string trim [exec -- $comSpec /c echo %CD%]]]
|
||||
} else {
|
||||
return [pwd]
|
||||
}
|
||||
@@ -902,8 +908,8 @@ proc catchcmdex {db {cmd ""}} {
|
||||
proc filepath_normalize {p} {
|
||||
# test cases should be written to assume "unix"-like file paths
|
||||
if {$::tcl_platform(platform)!="unix"} {
|
||||
# lreverse*2 as a hack to remove any unneeded {} after the string map
|
||||
lreverse [lreverse [string map {\\ /} [regsub -nocase -all {[a-z]:[/\\]+} $p {/}]]]
|
||||
string map [list \\ / \{/ / .db\} .db] \
|
||||
[regsub -nocase -all {[a-z]:[/\\]+} $p {/}]
|
||||
} {
|
||||
set p
|
||||
}
|
||||
@@ -1734,6 +1740,9 @@ proc crashsql {args} {
|
||||
set msg "child process exited abnormally"
|
||||
}
|
||||
}
|
||||
if {$r && [string match {*ERROR: LeakSanitizer*} $msg]} {
|
||||
set msg "child process exited abnormally"
|
||||
}
|
||||
|
||||
lappend r $msg
|
||||
}
|
||||
|
Reference in New Issue
Block a user