Skip to content

SILGen Tests #16347

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

Merged
merged 5 commits into from
Jun 11, 2018
Merged

SILGen Tests #16347

merged 5 commits into from
Jun 11, 2018

Conversation

compnerd
Copy link
Member

@compnerd compnerd commented May 3, 2018

Replace this paragraph with a description of your changes and rationale. Provide links to external references/discussions if appropriate.

Resolves SR-NNNN.

@compnerd
Copy link
Member Author

compnerd commented May 3, 2018

@swift-ci please test

@swift-ci
Copy link
Contributor

swift-ci commented May 3, 2018

Build failed
Swift Test Linux Platform
Git Sha - 0e194a942692f402c8f458a10bbf6fc892962852

@swift-ci
Copy link
Contributor

swift-ci commented May 3, 2018

Build failed
Swift Test OS X Platform
Git Sha - 0e194a942692f402c8f458a10bbf6fc892962852

@compnerd
Copy link
Member Author

@swift-ci please test

@compnerd
Copy link
Member Author

@swift-ci please test

@swift-ci
Copy link
Contributor

Build failed
Swift Test OS X Platform
Git Sha - b246040e73a6d619d228fdafa7e1029feec0dffe

@swift-ci
Copy link
Contributor

Build failed
Swift Test Linux Platform
Git Sha - b246040e73a6d619d228fdafa7e1029feec0dffe

@compnerd
Copy link
Member Author

CC: @aschwaighofer @jrose-apple suggestions as to why there are differences between the platforms here?

Copy link
Contributor

@jrose-apple jrose-apple left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

My guess is always that you ended up using the mock SDK with the real overlays. Don't forget that the fake overlays have to be built and put into the search path!

@@ -0,0 +1,12 @@
@interface NSEntityDescription
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Probably best to import Foundation and inherit from NSObject too. Things unexpectedly being base classes does weird things in Objective-C.

@compnerd
Copy link
Member Author

@swift-ci please smoke test macOS platform

@compnerd
Copy link
Member Author

@swift-ci please smoke test macOS platform

@compnerd
Copy link
Member Author

Darwin Failing Tests:

Swift(macosx-x86_64).SILGen.without_actually_escaping_block.swift
Swift(macosx-x86_64).SILGen.metatype_in_init_delegation.swift
Swift(macosx-x86_64).SILGen.objc_bridging.swift
Swift(macosx-x86_64).IRGen.newtype.swift
Swift(macosx-x86_64).IDE.newtype.swift

@compnerd
Copy link
Member Author

compnerd commented Jun 8, 2018

@swift-ci please smoke test macOS platform

@compnerd
Copy link
Member Author

compnerd commented Jun 8, 2018

@swift-ci please smoke test macOS platform

@compnerd
Copy link
Member Author

compnerd commented Jun 8, 2018

@swift-ci please smoke test macOS platform

@compnerd
Copy link
Member Author

compnerd commented Jun 8, 2018

@swift-ci please smoke test

compnerd added 5 commits June 11, 2018 09:23
When trying to figure out errors from an import failure, the nullability
completeness warnings would clutter the output making it difficult to
identify the errors.  Sprinkle the declaarations with
`_Null_unspecified` to maintain the current nullability semantics and
silence the warnings.  NFC.
This module was specified in the IDE and SILGen testing module maps,
which causes a failure.  Remove the duplicated declaration in the
SILGen inputs and use IDE's definition.
The local bridging headers needed two new definitions:
  - NSErrorDomain
  - NS_OPTIONS

These can be used by the SILGen tests to build against a stubbed
Foundation rather than requiring the host to provide it.
One of the SILGen tests uses CoreData.  Provide a stubbed out definition
sufficient for the tests.
Enable a number of SILGen tests to run on all targets.  This improves
coverage on non-Darwin targets.
@compnerd
Copy link
Member Author

@swift-ci please smoke test

@compnerd compnerd merged commit 5e2d66a into swiftlang:master Jun 11, 2018
@compnerd compnerd deleted the silgen branch June 11, 2018 17:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants