Commit Graph

1226 Commits

Author SHA1 Message Date
Nate Cook
3d2d3423ab [stdlib] Add test for Collection associated type inference 2016-07-14 02:23:28 -05:00
Vivian Kong
7080a54237 Fix PersistentVector test for s390x 2016-07-13 13:35:24 -04:00
Dmitri Gribenko
2bf19132de Merge pull request #3452 from natecook1000/nc-utf8index-nocore
[stdlib] Remove _StringCore from UTF8View.Index
2016-07-13 09:11:29 -07:00
Robert Widmann
f97e5dcb0e [SE-0115][1/2] Rename *LiteralConvertible protocols to ExpressibleBy*Literal. This
change includes both the necessary protocol updates and the deprecation
warnings
suitable for migration.  A future patch will remove the renamings and
make this
a hard error.
2016-07-12 15:25:24 -07:00
Doug Gregor
823c24b355 [SE-0112] Rename ErrorProtocol to Error.
This is bullet (5) of the proposed solution in SE-0112, and the last
major piece to be implemented.
2016-07-12 10:53:52 -07:00
Nate Cook
b0e20e1eda [stdlib] Add string view index comparability test 2016-07-12 09:29:49 -05:00
Russell Currey
9af6321235 Fix PersistentVector test for powerpc64{le}
This test has a check for 32/64bit, include powerpc64{le} in this check.

Signed-off-by: Russell Currey <ruscur@russell.cc>
2016-07-12 16:03:04 +10:00
Russell Currey
a16a063ac6 Use TIOCSTI instead of TIOCGWINSZ in Glibc test
validation-test/stlib/Glibc.swift was failing on powerpc64le due to the
missing TIOCGWINSZ symbol.  Since (from what I can tell) this is just a
random tty ioctl, replace it with a different ioctl that should be more
commonly defined.

Signed-off-by: Russell Currey <ruscur@russell.cc>
2016-07-12 16:02:54 +10:00
Dmitri Gribenko
824bccc871 stdlib: change Collection._copyToNativeArrayBuffer() to be defined in terms of public types 2016-07-11 10:54:43 -07:00
Dmitri Gribenko
bcb5a363d1 Merge pull request #3287 from PatrickPijnappel/utf-refactor
[stdlib] Significant UTF8/16 decode speed-ups for iterator nil-guarantee
2016-07-08 14:07:15 -07:00
Dmitri Gribenko
ce94bd9cca Merge pull request #3268 from natecook1000/nc-scalarindex-nocore
[stdlib] Remove _StringCore from UnicodeScalarIndex
2016-07-07 17:41:36 -07:00
Maxim Moiseev
131e0f8a70 [stdlib] validationt test for StrideTo/StrideThrough sequences (#3363) 2016-07-06 14:57:34 -07:00
Mishal Shah
23b646eed2 Update master to build with Xcode 8 beta 2, OS X 10.12, iOS 10, tvOS 10, and watchOS 3 SDKs 2016-07-06 10:48:45 -07:00
Dmitri Gribenko
7b1a8dcf7f Merge pull request #3344 from uraimo/glibc-test2
Glibc validation test now performed also on FreeBSD, fixed
2016-07-05 13:59:59 -07:00
Philippe Hausler
9b421c77ac Testing fallout for fixing SR-1903 2016-07-05 13:11:53 -07:00
Umberto Raimondi
7cc29eb019 Glibc validation test now performed also on FreeBSD, fixed 2016-07-05 13:35:23 -04:00
Ben Langmuir
98829a29f7 Revert "Glibc validation test now performed also on FreeBSD"
This broke the test on OS X bots.

This reverts commit c145ac2424.
2016-07-05 10:22:57 -07:00
Umberto Raimondi
c145ac2424 Glibc validation test now performed also on FreeBSD 2016-07-05 11:38:37 -04:00
Patrick Pijnappel
2cce7dbb29 [stdlib] Remove iterator post-nil checks from UTF validation tests 2016-07-05 20:49:13 +10:00
Nate Cook
202f84e7f4 [stdlib] Update String COW tests
Removing the _StringCore reference from string indices fixes
an extra reallocation when mutating a string with heap buffer
storage.
2016-07-02 23:16:28 -05:00
Chris Lattner
87db7b4cf2 update validation tests to modern syntax. 2016-07-02 17:10:49 -07:00
Michael Gottesman
3c603ab18b Merge remote-tracking branch 'origin/master' into master-next 2016-07-01 18:44:21 -07:00
Dmitri Gribenko
2080426d70 Merge pull request #3291 from practicalswift/syntax-fixes-20160701
[gardening] Don't compare with false
2016-07-01 16:25:16 -07:00
swift-ci
2aeed65973 Merge pull request #3276 from uraimo/tioc-patch 2016-07-01 16:05:14 -07:00
swift-ci
0d330a0419 Merge pull request #3292 from practicalswift/typo-fixes-20160701 2016-07-01 15:16:16 -07:00
Umberto Raimondi
bd1a6aeb01 stdlib: added Tty ioctl constants for Darwin/FreeBSD 2016-07-01 17:00:04 -04:00
practicalswift
dd93d551df [gardening] Fix recently introduced typos 2016-07-01 19:28:34 +02:00
practicalswift
6b5e688680 [gardening] Don't compare with false 2016-07-01 17:03:31 +02:00
Saleem Abdulrasool
83901998c9 Port for PS4
Add support for the PS4 OS.  Update the standard library and add a target unit
test.
2016-06-30 20:14:50 -07:00
Max Moiseev
4bbecbac75 Skip the test failing in the optimized mode 2016-06-30 17:15:51 -07:00
Dmitri Gribenko
b8ba955198 stdlib: add a prototype implementation of a persistent vector 2016-06-30 00:49:02 -07:00
Dmitri Gribenko
8507deccb7 stdlib: simplify test organization in FloatingPointConversion.swift.gyb 2016-06-29 23:21:22 -07:00
Dmitri Gribenko
3658d14389 stdlib: simplify tests for conversions of special floating point values 2016-06-29 22:41:09 -07:00
swift-ci
8fe85c3368 Merge pull request #2977 from ultramiraculous/failable-float-float 2016-06-29 20:30:11 -07:00
Chris Williams
025a69988d Float->Float Failable Initializer Tests 2016-06-29 16:23:32 -07:00
Austin Zheng
aec2d8ea0b [stdlib] Add tests for UnsafeMutableBufferPointer subscript setter 2016-06-29 14:59:16 -07:00
Austin Zheng
26ade958c3 [stdlib] Fix UnsafeBufferPointer range subscript getter tests (#3233)
All four of the Unsafe*BufferPointer range subscript getter tests (one for each range) were using the same test name string. This caused only one of the four tests to actually be registered to the test suite. This change fixes that issue, and adds a couple more tests for better coverage.
2016-06-29 13:56:57 -07:00
Michael Gottesman
8d00a6cb59 Merge remote-tracking branch 'origin/master' into master-next
Conflicts:
	stdlib/public/SDK/GameplayKit/CMakeLists.txt
	test/DebugInfo/bound-namealiastype.swift
	test/DebugInfo/structs.swift
	test/IRGen/c_globals.swift
	test/SourceKit/DocSupport/doc_clang_module.swift
	test/SourceKit/Indexing/index_with_clang_module.swift
	utils/update-checkout
2016-06-25 01:13:50 -07:00
Austin Zheng
d8b5a2a4fd [stdlib] Improving Dictionary/Set tests to use fewer unsafeBitCasts
NFC
2016-06-24 10:12:16 -07:00
Jordan Rose
47a247c41b [SDK] Backwards-deployment support for Core Data's generics. (#3154)
rdar://problem/26825103
2016-06-23 12:47:22 -07:00
Dave Abrahams
123fbaa1f8 warning suppression 2016-06-22 16:18:56 -07:00
swift-ci
2031bdc185 Merge pull request #2963 from ultramiraculous/failable-int-int 2016-06-21 23:49:11 -07:00
Chris Williams
08d111d10e Int->Int Failable Initializer Tests 2016-06-21 21:11:05 -07:00
Alsey Coleman Miller
9230864ac0 Updated Unit Test for CUUID 2016-06-21 19:02:55 -05:00
Alsey Coleman Miller
ff33f3bb74 Added CUUID to Glibc
Necessary for SR-1756 and SE-0069
2016-06-21 13:48:15 -05:00
Austin Zheng
dfcc13dc69 [stdlib] Bounds checks and tests for Unsafe*BufferPointer
Changes:
- Added bounds checks to Unsafe*BufferPointer's subscript getter and setter
- Added tests for Unsafe*BufferPointer's subscript getter for all four range types
2016-06-20 21:41:20 -07:00
Max Moiseev
b43341eb81 [stdlib] fixing the NewArray validation test in optimized mode 2016-06-20 15:58:45 -07:00
Rintaro Ishizaki
38b31c6419 [validation-test] Remove unused SwiftPrivate import 2016-06-20 13:09:10 +09:00
Rintaro Ishizaki
5c991e7e35 [validation-test] Remove -sil-serialize-all workaround from Collection and Slice tests
This workaround is not required since 49c54870c1
2016-06-20 11:32:46 +09:00
Austin Zheng
9138b73097 [stdlib] Addressing Dmitri Gribenko's feedback re #2993
Changes:
- Moved only-used-once helper methods into call sites
- Parameterized tests that might expect a crash
- Fixed some comments and formatting; renamed some test helper APIs
2016-06-17 00:26:27 -07:00