diff options
author | jan.nijtmans <jan.nijtmans@noemail.net> | 2025-03-27 14:37:07 +0000 |
---|---|---|
committer | jan.nijtmans <jan.nijtmans@noemail.net> | 2025-03-27 14:37:07 +0000 |
commit | 1588d3de37aa5cbf172077780370d56fc3612a3d (patch) | |
tree | f74d82509c10297d6c573102addb79fbacb2ffd9 /test | |
parent | 87b90921b6e0bd0c415bd6723a9d90b50bfd2747 (diff) | |
download | sqlite-1588d3de37aa5cbf172077780370d56fc3612a3d.tar.gz sqlite-1588d3de37aa5cbf172077780370d56fc3612a3d.zip |
More ==/!= => eq/ne fixes
FossilOrigin-Name: 2aa6c4fa6c9c47c7a8548ac3493bfb9ed4e4dec1b6dc4f3599a0373086b3e917
Diffstat (limited to 'test')
-rw-r--r-- | test/bc_common.tcl | 2 | ||||
-rw-r--r-- | test/tester.tcl | 10 | ||||
-rwxr-xr-x | test/testrunner.tcl | 8 | ||||
-rw-r--r-- | test/testrunner_data.tcl | 4 |
4 files changed, 12 insertions, 12 deletions
diff --git a/test/bc_common.tcl b/test/bc_common.tcl index c47f99681..953ce6262 100644 --- a/test/bc_common.tcl +++ b/test/bc_common.tcl @@ -9,7 +9,7 @@ proc bc_find_binaries {zCaption} { set binaries [list] set self [info nameofexec] set pattern "$self?*" - if {$::tcl_platform(platform)=="windows"} { + if {$::tcl_platform(platform) eq "windows"} { set pattern [string map {\.exe {}} $pattern] } foreach file [glob -nocomplain $pattern] { diff --git a/test/tester.tcl b/test/tester.tcl index 444a9d843..3fad39668 100644 --- a/test/tester.tcl +++ b/test/tester.tcl @@ -813,7 +813,7 @@ proc do_test {name cmd expected} { # 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"} { + if {![info exists ::SLAVE] || $::tcl_platform(platform) ne "windows"} { uplevel 1 [list do_test $name $cmd $expected] } } @@ -872,7 +872,7 @@ proc catchcmdex {db {cmd ""}} { proc filepath_normalize {p} { # test cases should be written to assume "unix"-like file paths - if {$::tcl_platform(platform)!="unix"} { + if {$::tcl_platform(platform) ne "unix"} { string map [list \\ / \{/ / .db\} .db] \ [regsub -nocase -all {[a-z]:[/\\]+} $p {/}] } { @@ -1832,7 +1832,7 @@ proc crashsql {args} { # error message. We map that to the expected message # so that we don't have to change all of the test # cases. - if {$::tcl_platform(platform)=="windows"} { + if {$::tcl_platform(platform) eq "windows"} { if {$msg=="child killed: unknown signal"} { set msg "child process exited abnormally" } @@ -1883,7 +1883,7 @@ proc crash_on_write {args} { # error message. We map that to the expected message # so that we don't have to change all of the test # cases. - if {$::tcl_platform(platform)=="windows"} { + if {$::tcl_platform(platform) eq "windows"} { if {$msg=="child killed: unknown signal"} { set msg "child process exited abnormally" } @@ -2532,7 +2532,7 @@ proc test_restore_config_pagecache {} { } proc test_binary_name {nm} { - if {$::tcl_platform(platform)=="windows"} { + if {$::tcl_platform(platform) eq "windows"} { set ret "$nm.exe" } else { set ret $nm diff --git a/test/testrunner.tcl b/test/testrunner.tcl index 2c7a9f891..60c4627f9 100755 --- a/test/testrunner.tcl +++ b/test/testrunner.tcl @@ -38,7 +38,7 @@ proc find_interpreter {} { } if {$rc} { puts "Cannot find tcl package sqlite3: Trying to build it now..." - if {$::tcl_platform(platform)=="windows"} { + if {$::tcl_platform(platform) eq "windows"} { set bat [open make-tcl-extension.bat w] puts $bat "nmake /f Makefile.msc tclextension" close $bat @@ -170,7 +170,7 @@ proc guess_number_of_cores {} { if {[catch {number_of_cores} ret]} { set ret 4 - if {$::tcl_platform(platform)=="windows"} { + if {$::tcl_platform(platform) eq "windows"} { catch { set ret $::env(NUMBER_OF_PROCESSORS) } } else { if {$::tcl_platform(os)=="Darwin"} { @@ -817,7 +817,7 @@ for {set ii 0} {$ii < [llength $argv]} {incr ii} { } elseif {[string match "$a*" --stop-on-coredump]} { set TRG(stopOnCore) 1 } elseif {[string match "$a*" --status]} { - if {$tcl_platform(platform)=="windows"} { + if {$tcl_platform(platform) eq "windows"} { puts stdout \ "The --status option is not available on Windows. A suggested work-around" puts stdout \ @@ -1500,7 +1500,7 @@ proc progress_report {} { global TRG if {$TRG(fullstatus)} { - if {$::tcl_platform(platform)=="windows"} { + if {$::tcl_platform(platform) eq "windows"} { exec [info nameofexe] $::argv0 status --cls } else { show_status trdb 1 diff --git a/test/testrunner_data.tcl b/test/testrunner_data.tcl index 2597cbe47..ade126a64 100644 --- a/test/testrunner_data.tcl +++ b/test/testrunner_data.tcl @@ -455,7 +455,7 @@ proc trd_fuzztest_data {} { set lFuzzDb [glob [file join $::testdir fuzzdata*.db]] set lSessionDb [glob [file join $::testdir sessionfuzz-data*.db]] - if {$::tcl_platform(platform)=="windows"} { + if {$::tcl_platform(platform) eq "windows"} { return [list fuzzcheck.exe $lFuzzDb] } @@ -527,7 +527,7 @@ proc make_script {cfg srcdir bMsvc} { set configOpts [list] ;# Extra args for [configure] # Define either SQLITE_OS_WIN or SQLITE_OS_UNIX, as appropriate. - if {$::tcl_platform(platform)=="windows"} { + if {$::tcl_platform(os) eq "Windows NT"} { lappend opts -DSQLITE_OS_WIN=1 } else { lappend opts -DSQLITE_OS_UNIX=1 |