Fossil SCM

Treat 'file normalize' with a bit more skepticism.

mistachkin 2016-03-03 22:12 UTC testerCleanup
Commit e264125a2cb435fca8c5d0d325dbc4eb84fa98fc
1 file changed +3 -1
+3 -1
--- test/tester.tcl
+++ test/tester.tcl
@@ -419,12 +419,14 @@
419419
#
420420
foreach name $names {
421421
set value [getEnvironmentVariable $name]
422422
423423
if {[string length $value] > 0} then {
424
+ set value [file normalize $value]
425
+
424426
if {[file exists $value] && [file isdirectory $value]} then {
425
- return [file normalize $value]
427
+ return $value
426428
}
427429
}
428430
}
429431
430432
#
431433
--- test/tester.tcl
+++ test/tester.tcl
@@ -419,12 +419,14 @@
419 #
420 foreach name $names {
421 set value [getEnvironmentVariable $name]
422
423 if {[string length $value] > 0} then {
 
 
424 if {[file exists $value] && [file isdirectory $value]} then {
425 return [file normalize $value]
426 }
427 }
428 }
429
430 #
431
--- test/tester.tcl
+++ test/tester.tcl
@@ -419,12 +419,14 @@
419 #
420 foreach name $names {
421 set value [getEnvironmentVariable $name]
422
423 if {[string length $value] > 0} then {
424 set value [file normalize $value]
425
426 if {[file exists $value] && [file isdirectory $value]} then {
427 return $value
428 }
429 }
430 }
431
432 #
433

Keyboard Shortcuts

Open search /
Next entry (timeline) j
Previous entry (timeline) k
Open focused entry Enter
Show this help ?
Toggle theme Top nav button