Commit Graph

19 Commits

Author SHA1 Message Date
Dmitri Gribenko
984210aa53 tests: replace '// RUN: rm -rf' '// RUN: mkdir' pairs with '%empty-directory(...)'
These changes were made using a script.
2017-06-04 11:08:39 -07:00
Dmitri Gribenko
d175b3b66d Migrate FileCheck to %FileCheck in tests 2016-08-10 23:52:02 -07:00
John McCall
b641cd9320 When stripping "AndReturnError" causes a conflict, don't do it,
but do continue to remove the error parameter.

Swift SVN r28068
2015-05-02 02:10:30 +00:00
John McCall
8d9556c114 Fix this test, again.
Swift SVN r28067
2015-05-02 02:02:29 +00:00
John McCall
df55a22846 Update for error-import.
Unfortunately, I think this somewhat kills the point of
this test; it should probably be replaced by a test of a
method that doesn't get correctly error-imported.

Swift SVN r28054
2015-05-01 23:27:15 +00:00
Argyrios Kyrtzidis
2931543a2f Revert "XFAIL failing IDE tests while BenL investigates. rdar://20245658."
This reverts commits r26369 & r26381.
After upstream clang changes, reverted r25843 which was compensating for a previous upstream clang change.

But keep test/IDE/complete_from_clang_framework.swift disabled for further investigation, because it
seems to have some duplications in a code-completion test.

rdar://20245658&20247922

Swift SVN r26430
2015-03-23 07:24:27 +00:00
Michael Gottesman
60b02a5c46 XFAIL failing IDE tests while BenL investigates. rdar://20245658.
Swift SVN r26369
2015-03-20 22:38:47 +00:00
Graham Batty
83b4384fac Update test flags for linux failures and support.
Also removed the sdk 'feature' in favour of the more specific
objc_interop.

Swift SVN r24856
2015-01-30 21:31:48 +00:00
Dmitri Hrybenko
3b04d1b013 tests: reorganize tests so that they actually use the target platform
Most tests were using %swift or similar substitutions, which did not
include the target triple and SDK.  The driver was defaulting to the
host OS.  Thus, we could not run the tests when the standard library was
not built for OS X.

Swift SVN r24504
2015-01-19 06:52:49 +00:00
Dmitri Hrybenko
1eea220932 Use one module cache directory for all the lit tests to speed them up
Doing so is safe even though we have mock SDK.  The include paths for
modules with the same name in the real and mock SDKs are different, and
the module files will be distinct (because they will have a different
hash).

This reduces test runtime on OS X by 30% and brings it under a minute on
a 16-core machine.

This also uncovered some problems with some tests -- even when run for
iOS configurations, some tests would still run with macosx triple.  I
fixed the tests where I noticed this issue.

rdar://problem/19125022

Swift SVN r23683
2014-12-04 11:21:48 +00:00
Dmitri Hrybenko
0a2593527e Add a target triple to all tests that use %sdk
These tests would assume OS X otherwise, and will fail because the SDK
is a non-OSX one.

Swift SVN r23110
2014-11-05 04:18:06 +00:00
Doug Gregor
e9037bcfa7 Default swift-ide-test to -implicit-objc-with like the rest of the world.
We require some level of consistency between the way the overlays were
built and what we work with in our mock SDK. The IDE/sdk_sugar.swift
test failure was because the overlay referenced "init(coder:)" while
the test was looking for "init(withCoder:)". Hilarity ensued
<rdar://problem/17791048>.

This only impacts testing.

Swift SVN r20564
2014-07-25 22:13:43 +00:00
Greg Parker
997780a5e2 [test] XFAIL test IDE/sdk_sugar.swift pending rdar://17791048.
Swift SVN r20471
2014-07-24 05:21:56 +00:00
Joe Groff
b80f401204 ClangImporter: Restore the NSErrorPointer importer sugar for NSError** params.
Swift SVN r19288
2014-06-27 04:07:29 +00:00
Joe Groff
cb48fbd24b Enable pointer conversions.
Swift SVN r19274
2014-06-26 23:26:31 +00:00
Ted Kremenek
0b13672a70 Temporarily restrict this test to OSX to unbreak iOS bots while more investigation happens.
Swift SVN r18292
2014-05-18 00:44:09 +00:00
Ted Kremenek
f0b112288f Per design discussion today, add back type sugar NSError** out parameters.
The new sugar is 'NSErrorPointer', which hides 'AutoreleasingUnsafePointer<NSError?>'.

I have not yet tested this on iOS, which previously had problems
with the type sugar import.  I'll try and test that now.

Swift SVN r18270
2014-05-17 20:50:40 +00:00
Ted Kremenek
02f8edb20b Revert "Import 'NSError**' in parameters as typealias 'NSErrorResult'."
The outcome is not clear on swift-api-review, and this is breaking
the bots.

Swift SVN r17821
2014-05-10 01:21:11 +00:00
Ted Kremenek
453532ca21 Import 'NSError**' in parameters as typealias 'NSErrorResult'.
Previously 'NSError**' was imported directly as
ObjCMutablePointer<NSError?>, which is verbose and quite ugly
in the synthesized interfaces and overrides.  This remapping
is semantically equivalent by syntactically prettier.

This name needs to go through API review.

The test uses the actual SDK; the clang-importer-sdk didn't work
because the dump of the Foundation module only shows the pieces
from the Swift files, and the Objective-C pieces are just shown
as re-exported modules.  Testing the actual SDK provides good
fidelity anyway.

Swift SVN r17707
2014-05-08 18:46:27 +00:00