Commit Graph

125 Commits

Author SHA1 Message Date
Max Moiseev
9fc37efee4 [test] renaming test/1_stdlib to just test/stdlib 2016-09-01 16:51:43 -07:00
Jordan Rose
e83c117c30 [test] Hack: run stdlib tests first to start long-running tests earlier.
This decreases total testing time by over a minute on my old Mac Pro.
It probably has much less effect on systems with fewer cores, but shouldn't
be any worse there.

Swift SVN r22745
2014-10-15 01:30:51 +00:00
Dave Abrahams
2d850421bc [stdlib] Internalize HeapBuffer[Storage], OnHeap
They were never really useful to users, because their APIs were
insufficiently public.  They have been replaced with a single class,
ManagedBuffer<Value,Element>, which is really designed for user
consumption.

Swift SVN r22636
2014-10-09 21:45:44 +00:00
Dave Abrahams
c93f32a4b3 [stdlib] Eliminate needless intermediate class
Swift SVN r22415
2014-09-30 23:43:25 +00:00
Dmitri Hrybenko
b095339da7 stdlib/Array: implement delayed bridging
rdar://18191358

Swift SVN r22071
2014-09-18 13:46:39 +00:00
Dmitri Hrybenko
395b56c287 Remove a swap file that I accidentally committed
Swift SVN r21941
2014-09-15 13:53:48 +00:00
Dmitri Hrybenko
ceff82f2ba stdlib/Array: add tests for Array -> NSArray bridging
Swift SVN r21939
2014-09-15 13:49:50 +00:00
Dmitri Hrybenko
d7acb06c64 stdlib/Dictionary: use 'delayed bridging' to keep pointers, returned
from a bridged NSDictionary, stable

We used to return a fresh pointer value every time an NSDictionary
element is requested, but, unfortunately, our SDK has bugs.

Fixes rdar://18191358 for Dictionary.

Swift SVN r21905
2014-09-12 13:20:30 +00:00
Dmitri Hrybenko
2487238955 Dictionary test: generalize equalsUnordered() utility
Swift SVN r21904
2014-09-12 09:24:36 +00:00
Dmitri Hrybenko
2ecb228b72 stdlib/Dictionary test: use AtomicInt to count key/value instances
Swift SVN r21872
2014-09-11 14:00:36 +00:00
Dmitri Hrybenko
42403f9ab8 stdlib/Dictionary test: factor our testing utilities into a separate
file

Swift SVN r21806
2014-09-09 07:04:35 +00:00
Jordan Rose
70e815b554 [test] Update tests for r21391
Swift SVN r21414
2014-08-22 16:18:57 +00:00
Dmitri Hrybenko
c5ec180cd8 Dictionary: remove some autorelease traffic by avoiding immutable creating
immutable NSArrays (which autorelease objects internally), and by building the
code in ARC mode (so that autorelease optimization kicks in).

rdar://17944094


Swift SVN r21365
2014-08-21 17:25:57 +00:00
Greg Parker
98411714aa Use 16K segment alignment on 32-bit arm.
<rdar://18066791> iOS swift runtime libs should have 16KB page size


Swift SVN r21345
2014-08-21 06:11:54 +00:00
Dmitri Hrybenko
7255f900b9 stdlib: move test for floating point conversion traps to the validation
testsuite

Fixes for traps will follow.


Swift SVN r21108
2014-08-08 15:20:05 +00:00
Dmitri Hrybenko
4fa064696d NSString APIs test: attempt to fix the test on iOS by removing a dependency on
a file in the source tree


Swift SVN r21105
2014-08-08 11:58:56 +00:00
Dmitri Hrybenko
e4b62021a6 stdlib/overflow trap test: the optimizer is becoming more and more powerful;
load constants using functions that are truly opaque to the optimizer


Swift SVN r19507
2014-07-03 10:07:50 +00:00
Dmitri Hrybenko
9515418a69 stdlib/NSString API tests: add a missing file in Inputs
Swift SVN r18569
2014-05-22 20:37:04 +00:00
Greg Parker
e2ca13c993 <rdar://16529903> Make UIViewController's nib search find Swift class names.
UIViewController is able to find nib files that have names derived from the 
UIViewController subclass's name. This change modifies UIViewController's 
lookup so it is able to find nib files for Swift class names.


Swift SVN r18470
2014-05-20 23:14:52 +00:00
Doug Gregor
9138ba2763 Add some tests that involve passing bridged arrays between Swift and Objective-C.
Swift SVN r18445
2014-05-20 04:39:37 +00:00
Dmitri Hrybenko
d47fd41ac3 stdlib/Optional: add tests for trapping on unwrapping .None
rdar://16849500


Swift SVN r18343
2014-05-18 19:13:56 +00:00
Dave Abrahams
8cce55bdb4 [stdlib] WIP on Array Bridge/Cast Testing
Swift SVN r18113
2014-05-15 18:01:31 +00:00
Dmitri Hrybenko
392f6a80d2 stdlib/Dictionary: add fast enumeration tests in Objective-C
rdar://16841394


Swift SVN r17771
2014-05-09 11:03:36 +00:00
Greg Parker
d619d82388 [test] Add new file for crash testing.
Swift SVN r17305
2014-05-03 02:37:26 +00:00
Greg Parker
f1ca6c0964 [test] Fix stdlib/Reflection.swift on iOS.
Swift SVN r15198
2014-03-18 19:42:44 +00:00