Skip to content

Commit 5c1c118

Browse files
committed
Workaround for [8c63606802] - testsetplatform / path caching with -singleproc 1
1 parent 691d6c5 commit 5c1c118

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

tests/fileName.test

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1273,12 +1273,17 @@ test filename-14.22 {asterisks, question marks, and brackets} -body {
12731273
test filename-14.23 {slash globbing} {unix} {
12741274
glob /
12751275
} /
1276+
1277+
# NOTE: [The string index x/ 1] construction is a workaround for the
1278+
# testsetplatform calls above interacting with normalized path caching
1279+
# in -singleproc 1 runs. See ticket [8c63606802].
12761280
test filename-14.23.2 {slash globbing} {win} {
12771281
glob /
1278-
} [file normalize /]
1282+
} [file normalize [string index x/ 1]]
12791283
test filename-14.24 {slash globbing} {win} {
12801284
glob {\\}
1281-
} [file normalize /]
1285+
} [file normalize [string index x/ 1]]
1286+
12821287
test filename-14.25 {type specific globbing} {unix} {
12831288
lsort [glob -dir globTest -types f *]
12841289
} [lsort [list \

0 commit comments

Comments
 (0)