Re: [swift-dev] Unit tests for the Swift project

2017-09-12 Thread Slava Pestov via swift-dev
Take a look at test/stdlib/. Unit tests use the SwiftUnittest framework, you should be able to get started by looking at existing examples. Slava > On Sep 12, 2017, at 5:35 AM, Alwyn Concessao via swift-dev > wrote: > > Hey Swift devs, > > So I have been able to clone the Swift project from

Re: [swift-dev] [Swift CI] Build Failure: 2. Swift Source Compatibility Suite (master) #220

2017-09-12 Thread Ben Langmuir via swift-dev
Any ideas? It looks like we can’t find UICollectionViewLayout.prepare(), but the same file compiled okay in the “Chatto” project (this one is “ChattoApp”). The SDK versions appear to be the same as the previous build, and Doug’s commit looks unrelated to me. The project is using the same hash a

Re: [swift-dev] [Swift CI] Build Failure: 0. OSS - Swift Incremental RA - Ubuntu 16.04 (master) #490

2017-09-12 Thread Ben Langmuir via swift-dev
This commit was reverted in https://github.com/apple/swift/pull/11878 > On Sep 12, 2017, at 12:26 PM, no-re...@swift.org wrote: > > [FAILURE] oss-swift-incremental-RA-linux-ubuntu-16_04 [#490] > > Build URL: > https://ci.swift.org/job/oss-swift-in

Re: [swift-dev] [Swift CI] Build Failure: 0. OSS - Swift Incremental RA - Ubuntu 14.04 (master) #507

2017-09-12 Thread Ben Langmuir via swift-dev
Could be the same as https://bugs.swift.org/browse/SR-5871 > On Sep 12, 2017, at 9:21 AM, Douglas Gregor wrote: > > Huh. This failure > > TestFoundation/TestThread.swift:110: error: TestThread.test_mainThread > : XCTAssertTrue failed - NSCondition wait timed out > > Have we seen it befo

Re: [swift-dev] [Swift CI] Build Failure: 0. OSS - Swift Incremental RA - Ubuntu 14.04 (master) #507

2017-09-12 Thread Douglas Gregor via swift-dev
Huh. This failure TestFoundation/TestThread.swift:110: error: TestThread.test_mainThread : XCTAssertTrue failed - NSCondition wait timed out Have we seen it before? It didn’t show up in any of the PR testing and seems unrelated to my changes. - Doug > On Sep 12, 2017, at 8:44

[swift-dev] Unit tests for the Swift project

2017-09-12 Thread Alwyn Concessao via swift-dev
Hey Swift devs, So I have been able to clone the Swift project from Github and built the project successfully.I've just added some code to the Swift std library and I want to test the added functionality by writing some unit tests.But I'm stuck with going about doing this.How can I write unit te