Jordan Rose
e4e9c71d8f
StdlibUnittest: Rename enum cases and static vars to match API guidelines.
2016-02-24 18:23:59 -08:00
Erik Eckstein
0830c36974
[tests] add import statements to prevent unresolved symbols when compiling StdlibUnittest with -sil-serialize-all.
...
This is the second part of 308f39fe56 .
It fixes (better: works-around) linker errors when testing in optimized mode.
2015-12-15 10:46:10 -08:00
Greg Parker
e09027ca04
Fix the error message when a cast to a protocol type fails.
...
rdar://22936612
2015-11-17 01:08:31 -08:00
Arnold Schwaighofer
f7771859d8
Rename the optimize_test feature to executable_test and document that feature.
...
Swift SVN r29213
2015-06-01 23:44:13 +00:00
Arnold Schwaighofer
3643c614a3
Run tests in optimize test modes
...
This runs all files that have a target-build-swift or target-run-stdlib-swift
RUN line in optimize test mode.
Swift SVN r29206
2015-06-01 21:23:31 +00:00
Slava Pestov
8872986a8f
These tests don't crash deterministically with -Ounchecked
...
Swift SVN r28875
2015-05-21 16:01:48 +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
Chris Willmore
03a6190a1f
<rdar://problem/19031957> Change failable casts from "as" to "as!"
...
Previously the "as" keyword could either represent coercion or or forced
downcasting. This change separates the two notions. "as" now only means
type conversion, while the new "as!" operator is used to perform forced
downcasting. If a program uses "as" where "as!" is called for, we emit a
diagnostic and fixit.
Internally, this change removes the UnresolvedCheckedCastExpr class, in
favor of directly instantiating CoerceExpr when parsing the "as"
operator, and ForcedCheckedCastExpr when parsing the "as!" operator.
Swift SVN r24253
2015-01-08 00:33:59 +00:00
Graham Batty
83f27a8af7
Revert "Mark tests that don't pass on linux as XFAIL."
...
This reverts commit 2711ca86de7bf6a7885ccea24219a48a590b1e95.
Swift SVN r23577
2014-11-24 17:42:13 +00:00
Graham Batty
198402dcfe
Mark tests that don't pass on linux as XFAIL.
...
Swift SVN r23573
2014-11-24 17:40:37 +00:00
Dave Abrahams
c91c35c006
[stdlib] Run all gyb'd tests thru line-directive
...
Some were being missed, and as a result failures were hard to diagnose.
Swift SVN r23496
2014-11-21 00:24:26 +00:00
Greg Parker
a448d6e374
Test: Clean up the checks in test CastTraps.
...
Swift SVN r23154
2014-11-07 02:34:41 +00:00
Greg Parker
e70ca2762d
Runtime: Improve diagnostics for failed casts to ObjC class and protocol types.
...
Swift SVN r23146
2014-11-07 00:53:05 +00:00