1
0
mirror of https://github.com/sqlite/sqlite.git synced 2025-07-30 19:03:16 +03:00

Prevent backcompat.test from mistaking directories for binary executables.

FossilOrigin-Name: 717a1e50f005714b1d5233f80697db14cd8af659
This commit is contained in:
dan
2010-10-05 08:13:44 +00:00
parent 547caad4c4
commit 0a9312d92d
3 changed files with 9 additions and 19 deletions

View File

@ -39,7 +39,7 @@ if {$tcl_platform(platform)=="windows"} {
set pattern [string map {\.exe {}} $pattern]
}
foreach file [glob -nocomplain $pattern] {
if {[file executable $file]} {lappend binaries $file}
if {[file executable $file] && [file isfile $file]} {lappend binaries $file}
}
if {[llength $binaries]==0} {
puts "WARNING: No historical binaries to test against."