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-9010] Linux XCTest missing "wait(for expectations:)" helpers #359

Closed
stephencelis opened this issue Oct 16, 2018 · 2 comments
Closed
Assignees

Comments

@stephencelis
Copy link

Previous ID SR-9010
Radar rdar://problem/45575929
Original Reporter @stephencelis
Type Bug
Status Resolved
Resolution Duplicate
Environment

Linux Swift 4.2

Additional Detail from JIRA
Votes 0
Component/s XCTest
Labels Bug
Assignee @stmontgomery
Priority Medium

md5: 61089d71364148081d7f0f34f4dfb9d7

duplicates:

  • SR-7615 swift-corelibs-xctest missing XCTWaiter

Issue Description:

Linux only implements "waitForExpectations", which waits for all current expectations before continuing. This makes it impossible to write more granular tests where certain expectations are in flight but are not ready to be completed (or waited for) yet.

This is important to support because test helper libraries can create their own assertions that wait for their own expectations, but as it stands user land code can trample over this library code and vice versa.

@belkadan
Copy link

@swift-ci create

@stmontgomery
Copy link
Contributor

Just posted a Pull Request for this yesterday!

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

No branches or pull requests

3 participants