Skip to content

Commit f7dcf1d

Browse files
authored
Merge pull request #68096 from tristanlabelle/remove-lit-realpath
Remove realpath in lit site config to fix Driver/working-directory.swift test failure
2 parents 2d171bd + 7d13da4 commit f7dcf1d

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

test/lit.site.cfg.in

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313
import os
1414
import platform
1515
import sys
16+
import lit.util
1617

1718
config.cmake = "@CMAKE_COMMAND@"
1819
config.llvm_src_root = "@LLVM_MAIN_SRC_DIR@"
@@ -170,6 +171,6 @@ if '@SWIFT_SWIFT_PARSER@' == 'TRUE':
170171

171172
# Let the main config do the real work.
172173
if config.test_exec_root is None:
173-
config.test_exec_root = os.path.dirname(os.path.realpath(__file__))
174+
config.test_exec_root = os.path.dirname(lit.util.abs_path_preserve_drive(__file__))
174175
lit_config.load_config(
175176
config, os.path.join(config.swift_src_root, "test", "lit.cfg"))

0 commit comments

Comments
 (0)