File tree Expand file tree Collapse file tree 2 files changed +14
-4
lines changed Expand file tree Collapse file tree 2 files changed +14
-4
lines changed Original file line number Diff line number Diff line change @@ -66,11 +66,19 @@ config.test_source_root = os.path.join(srcroot)
6666# test_source_root: The root path where tests are executing.
6767config .test_exec_root = "/tmp/swift-package-tests"
6868
69- # We don't make use of this yet.
69+ # The triple is used during XFAIL processing. If the triple
70+ # specified here matches one of the XFAIL triples, a failing
71+ # test is allowed to fail. We don't actually need the whole
72+ # thing, just enough to identify Linux, so for now only fill
73+ # in enough to handle that.
7074#
71- # FIXME: This is pretty compiler specific and probably should just be ripped out
72- # of lit.
73- config .target_triple = None
75+ # TODO figure out how to grab the whole triple for the build
76+ # target and stick it in here.
77+ if platform .system () == 'Linux' :
78+ config .target_triple = 'linux'
79+ elif platform .system () == 'Darwin' :
80+ config .target_triple = 'darwin'
81+
7482
7583# On Darwin, always push SDKROOT in the environment.
7684#
Original file line number Diff line number Diff line change 11# Tests that importing Glibc works on Linux
22#
3+ # XFAIL: linux
4+ # TRACKED BY: SR-1109
35# REQUIRES: platform=Linux
46# REQUIRES: have-pexpect
57#
You can’t perform that action at this time.
0 commit comments