Skip to content

Commit fa433b9

Browse files
committed
[Tests] Update comments (NFC)
Spruce up the code comments in the tests' lit.cfg. Mirror the work in swiftlang/swift-corelibs-foundation#431, which removes references to "OS X", plus make a few parts slightly more readable.
1 parent def5695 commit fa433b9

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

Tests/Functional/lit.cfg

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ swift_exec = [
4646
]
4747

4848
if platform.system() == 'Darwin':
49-
# On OS X, we need to make sure swiftc references the
49+
# On Darwin, we need to make sure swiftc references the
5050
# proper SDK, has a deployment target set, and more...
5151
# Here we rely on environment variables, produced by xcodebuild.
5252
sdk_root = _getenv('SDKROOT')
@@ -77,7 +77,8 @@ else:
7777
'-I', core_foundation_dir,
7878
])
7979
config.environment['LD_LIBRARY_PATH'] = foundation_dir
80-
# as well as libdispatch if Foundation is using it
80+
# We also need to link swift-corelibs-libdispatch, if
81+
# swift-corelibs-foundation is using it.
8182
libdispatch_src_dir = os.getenv('LIBDISPATCH_SRC_DIR')
8283
libdispatch_build_dir = os.getenv('LIBDISPATCH_BUILD_DIR')
8384
if (libdispatch_src_dir is not None) and (libdispatch_build_dir is not None):
@@ -90,7 +91,7 @@ else:
9091
# Having prepared the swiftc command, we set the substitution.
9192
config.substitutions.append(('%{swiftc}', ' '.join(swift_exec)))
9293

93-
# Add the %xctest_checker substitution, which is a Python script
94+
# Add the %{xctest_checker} substitution, which is a Python script that
9495
# can be used to compare the actual XCTest output to the expected
9596
# output.
9697
xctest_checker = os.path.join(

0 commit comments

Comments
 (0)