Fossil SCM

Add TMPDIR to the list of places tester.tcl looks for its tmp

danshearer 2026-11-11 08:40 UTC test-suite-new
Commit bb353407c1b5ffbaeb090172d340107303d5d23b587d52802508aa24095d8a40
1 file changed +3 -3
+3 -3
--- test/tester.tcl
+++ test/tester.tcl
@@ -509,11 +509,11 @@
509509
$::tempRepoPath $repoSeed [file tail [get_script_or_fail]]]
510510
if {[catch {
511511
file mkdir $repoPath
512512
} error] != 0} {
513513
error "Could not make directory \"$repoPath\",\
514
-please set TEMP variable in environment, error: $error"
514
+please set TMPDIR or TEMP variable in environment, error: $error"
515515
}
516516
if {![info exists ::tempSavedPwd]} {set ::tempSavedPwd [pwd]}; cd $repoPath
517517
if {[string length $filename] > 0} {
518518
exec $::fossilexe new $filename
519519
exec $::fossilexe open $filename
@@ -673,11 +673,11 @@
673673
set names [list]
674674
675675
#
676676
# TODO: Add more here, if necessary.
677677
#
678
- foreach name [list FOSSIL_TEST_TEMP FOSSIL_TEMP TEMP TMP] {
678
+ foreach name [list FOSSIL_TEST_TEMP FOSSIL_TEMP TMPDIR TEMP TMP] {
679679
lappend names [string toupper $name] [string tolower $name] \
680680
[string totitle $name]
681681
}
682682
683683
#
@@ -1116,11 +1116,11 @@
11161116
if {[catch {
11171117
set tempFile [file join $tempPath temporary.txt]
11181118
write_file $tempFile [clock seconds]; file delete $tempFile
11191119
} error] != 0} {
11201120
error "Could not write file \"$tempFile\" in directory \"$tempPath\",\
1121
-please set TEMP variable in environment, error: $error"
1121
+please set TMPDIR or TEMP variable in environment, error: $error"
11221122
}
11231123
11241124
set tempHomePath [file join $tempPath home_[pid]]
11251125
11261126
# Close stdin to avoid errors on wrapped text for narrow terminals.
11271127
--- test/tester.tcl
+++ test/tester.tcl
@@ -509,11 +509,11 @@
509 $::tempRepoPath $repoSeed [file tail [get_script_or_fail]]]
510 if {[catch {
511 file mkdir $repoPath
512 } error] != 0} {
513 error "Could not make directory \"$repoPath\",\
514 please set TEMP variable in environment, error: $error"
515 }
516 if {![info exists ::tempSavedPwd]} {set ::tempSavedPwd [pwd]}; cd $repoPath
517 if {[string length $filename] > 0} {
518 exec $::fossilexe new $filename
519 exec $::fossilexe open $filename
@@ -673,11 +673,11 @@
673 set names [list]
674
675 #
676 # TODO: Add more here, if necessary.
677 #
678 foreach name [list FOSSIL_TEST_TEMP FOSSIL_TEMP TEMP TMP] {
679 lappend names [string toupper $name] [string tolower $name] \
680 [string totitle $name]
681 }
682
683 #
@@ -1116,11 +1116,11 @@
1116 if {[catch {
1117 set tempFile [file join $tempPath temporary.txt]
1118 write_file $tempFile [clock seconds]; file delete $tempFile
1119 } error] != 0} {
1120 error "Could not write file \"$tempFile\" in directory \"$tempPath\",\
1121 please set TEMP variable in environment, error: $error"
1122 }
1123
1124 set tempHomePath [file join $tempPath home_[pid]]
1125
1126 # Close stdin to avoid errors on wrapped text for narrow terminals.
1127
--- test/tester.tcl
+++ test/tester.tcl
@@ -509,11 +509,11 @@
509 $::tempRepoPath $repoSeed [file tail [get_script_or_fail]]]
510 if {[catch {
511 file mkdir $repoPath
512 } error] != 0} {
513 error "Could not make directory \"$repoPath\",\
514 please set TMPDIR or TEMP variable in environment, error: $error"
515 }
516 if {![info exists ::tempSavedPwd]} {set ::tempSavedPwd [pwd]}; cd $repoPath
517 if {[string length $filename] > 0} {
518 exec $::fossilexe new $filename
519 exec $::fossilexe open $filename
@@ -673,11 +673,11 @@
673 set names [list]
674
675 #
676 # TODO: Add more here, if necessary.
677 #
678 foreach name [list FOSSIL_TEST_TEMP FOSSIL_TEMP TMPDIR TEMP TMP] {
679 lappend names [string toupper $name] [string tolower $name] \
680 [string totitle $name]
681 }
682
683 #
@@ -1116,11 +1116,11 @@
1116 if {[catch {
1117 set tempFile [file join $tempPath temporary.txt]
1118 write_file $tempFile [clock seconds]; file delete $tempFile
1119 } error] != 0} {
1120 error "Could not write file \"$tempFile\" in directory \"$tempPath\",\
1121 please set TMPDIR or TEMP variable in environment, error: $error"
1122 }
1123
1124 set tempHomePath [file join $tempPath home_[pid]]
1125
1126 # Close stdin to avoid errors on wrapped text for narrow terminals.
1127

Keyboard Shortcuts

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