Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[SR-1646] Need to run 'swift test' twice for it to start properly #5368

Closed
swift-ci opened this issue May 31, 2016 · 3 comments
Closed

[SR-1646] Need to run 'swift test' twice for it to start properly #5368

swift-ci opened this issue May 31, 2016 · 3 comments
Labels

Comments

@swift-ci
Copy link
Contributor

Previous ID SR-1646
Radar None
Original Reporter GregoryW (JIRA User)
Type Bug
Status Resolved
Resolution Cannot Reproduce
Environment

OS X El Capitan 10.11.4
Development Snapshot 2016-05-09-a

Additional Detail from JIRA
Votes 0
Component/s Package Manager, XCTest
Labels Bug, RunTimeCrash
Assignee GregoryW (JIRA)
Priority Medium

md5: 8b9ac320e16cda6166da1149107ca892

Issue Description:

'swift build ...' runs successfully, running 'swift test' seems to start but doesn't pass the first test and exits without any further output. Running 'swift test' again immediately after that runs all the tests properly.

If you need the source code of the project, you can get it here.

Here's some output.

$ swift build -Xcc -I/usr/local/include -Xlinker -L/usr/local/lib
Compile IBMDBLinkerLinux empty.c
Compile IBMDBLinkerDarwin empty.c
Linking IBMDBLinkerDarwin
Linking IBMDBLinkerLinux
Compile Swift Module 'IBMDB' (1 sources)

$ swift test
Compile Swift Module 'IBMDBTestSuite' (6 sources)
Linking .build/debug/IBMDBTests.xctest/Contents/MacOS/IBMDBTests
ld: warning: object file (/usr/local/lib/libibmdb.a(ibm_db.o)) was built for newer OSX version (10.11) than being linked (10.10)
Test Suite 'All tests' started at 2016-05-31 00:19:48.170
Test Suite 'IBMDBTests.xctest' started at 2016-05-31 00:19:48.170
Test Suite 'ConnectSyncTests' started at 2016-05-31 00:19:48.170
Test Case '-[IBMDBTestSuite.ConnectSyncTests testConnectSyncInvalidConfig]' started.

$ swift test
Test Suite 'All tests' started at 2016-05-31 00:19:52.136
Test Suite 'IBMDBTests.xctest' started at 2016-05-31 00:19:52.136
Test Suite 'ConnectSyncTests' started at 2016-05-31 00:19:52.136
Test Case '-[IBMDBTestSuite.ConnectSyncTests testConnectSyncInvalidConfig]' started.
Test Case '-[IBMDBTestSuite.ConnectSyncTests testConnectSyncInvalidConfig]' passed (0.036 seconds).
Test Case '-[IBMDBTestSuite.ConnectSyncTests testConnectSyncValidConfig]' started.
Test Case '-[IBMDBTestSuite.ConnectSyncTests testConnectSyncValidConfig]' passed (2.252 seconds).
Test Suite 'ConnectSyncTests' passed at 2016-05-31 00:19:54.425.
     Executed 2 tests, with 0 failures (0 unexpected) in 2.288 (2.288) seconds
.... (until it finishes)
@modocache
Copy link
Mannequin

modocache mannequin commented Jul 26, 2016

Oomph, thanks for reporting this issue, GregoryW (JIRA User)!

The link you provided for the source code to your project is now broken (or perhaps it is a private repository): https://github.com/IBM-DTeam/swift-ibm-db – sorry, but could you provide a new link?

Also, do you know whether this problem still occurs on the latest snapshot? No worries if not, I'll try it out myself once you send me the sample project.

/cc @aciidb0mb3r

@ankitspd
Copy link
Member

That looks like a crash to me. can you make a minimal package reproducing this on latest snapshot?

@ddunbar
Copy link
Member

ddunbar commented Aug 15, 2016

Gregory, can you check if this is still an issue and reopen if so?

@swift-ci swift-ci transferred this issue from apple/swift-issues Apr 25, 2022
@shahmishal shahmishal transferred this issue from apple/swift May 4, 2022
This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants