Commit Graph

11 Commits

Author SHA1 Message Date
Daniel Duan
3dfc40898c [NFC] Remove Python 2 imports from __future__ (#42086)
The `__future__` we relied on is now,  where the 3 specific things are
all included [since Python 3.0](https://docs.python.org/3/library/__future__.html):

* absolute_import
* print_function
* unicode_literals
* division

These import statements are no-ops and are no longer necessary.
2022-04-13 14:01:30 -07:00
swift-ci
4aa2ecfb68 Merge pull request #38345 from al45tair/problem/74414189 2021-09-10 09:55:44 -07:00
Alastair Houghton
351f6e7c8d [Tests] Disable RemoteMirror/interop for remote run tests.
This test isn't compatible with remote_run.

rdar://82124292
2021-08-26 14:22:28 +01:00
Alastair Houghton
3e9395829e [Tests] Disable RemoteMirror/interop on use_os_stdlib builds.
Even after the previous fix, this still isn't working on use_os_stdlib
builds.  Just mark those as unsupported for now.

rdar://82124292
2021-08-25 16:38:43 +01:00
Alastair Houghton
6976eaddf5 [Tests] Don't use dirname() - it isn't safe. Also, use asprintf().
Replaced dirname() as the man page says (alarmingly) that it might write to
the input string.  Also use asprintf() to build the new value for
DYLD_LIBRARY_PATH.
2021-08-23 15:38:47 +01:00
Alastair Houghton
d39e069195 [Tests] Fix RemoteMirror test to work when DYLD_LIBRARY_PATH is set.
Changed the RemoteMirror test to work around DYLD_LIBRARY_PATH when it's
given an absolute path; when it's called from CI, we really want it to
load the libswiftRemoteMirror.dylib that we just built, *not* the system
one, which is what happens for some of the builders.

rdar://82124292
2021-08-19 19:35:46 +01:00
swift-ci
1697184c1c Merge pull request #38751 from al45tair/fix-interop-test 2021-08-04 12:12:42 -07:00
Alastair Houghton
d2de76b7a9 [Tests] Fix RemoteMirror interop test to require executable_test.
Missing REQUIRES: executable_test in the test script.
2021-08-04 17:30:14 +01:00
Alastair Houghton
e9350fe346 [Reflection] Fix projectEnumValue to work for enums containing existentials
Implemented the necessary code, replacing a "XXX TODO XXX" comment.

rdar://74414189
2021-08-03 16:58:08 +01:00
Alastair Houghton
8918a09595 [Tests] Fix RemoteMirror/interop.swift to work with ASAN enabled.
In order to work for an ASAN build, parts of this test need themselves to be
built with ASAN turned on.

rdar://81274645
2021-07-29 18:27:11 +01:00
Alastair Houghton
c3df37cff3 [RemoteMirror] Move interop test to the test directory, run it automatically.
Added a run of the interop test as part of the test suite.
2021-07-13 16:05:38 +01:00