Fossil SCM

Fix a number of unversioned tests under cygwin by letting he fake editor convert windows paths to unix paths.

preben 2023-12-14 13:51 testing-improvements
Commit 84d86ba60ff83908351bda746298f143b0f29c1138c46302ee7f68ddcc809fc9
1 file changed +5
--- test/fake-editor.tcl
+++ test/fake-editor.tcl
@@ -49,10 +49,15 @@
4949
}
5050
5151
###############################################################################
5252
5353
set fileName [lindex $argv 0]
54
+
55
+if {[regexp {^CYGWIN} $::tcl_platform(os)]} {
56
+ # Under Cygwin, we get a Windows path but must access using the unix path.
57
+ set fileName [exec cygpath --unix $fileName]
58
+}
5459
5560
if {[file exists $fileName]} {
5661
set data [readFile $fileName]
5762
} else {
5863
set data ""
5964
--- test/fake-editor.tcl
+++ test/fake-editor.tcl
@@ -49,10 +49,15 @@
49 }
50
51 ###############################################################################
52
53 set fileName [lindex $argv 0]
 
 
 
 
 
54
55 if {[file exists $fileName]} {
56 set data [readFile $fileName]
57 } else {
58 set data ""
59
--- test/fake-editor.tcl
+++ test/fake-editor.tcl
@@ -49,10 +49,15 @@
49 }
50
51 ###############################################################################
52
53 set fileName [lindex $argv 0]
54
55 if {[regexp {^CYGWIN} $::tcl_platform(os)]} {
56 # Under Cygwin, we get a Windows path but must access using the unix path.
57 set fileName [exec cygpath --unix $fileName]
58 }
59
60 if {[file exists $fileName]} {
61 set data [readFile $fileName]
62 } else {
63 set data ""
64

Keyboard Shortcuts

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