Skip to content

[test] Change stored-properties-client to an executable test #21426

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 1 commit into from
May 3, 2019

Conversation

harlanhaskins
Copy link
Contributor

This test was overfitting what it was trying to test, causing different
targets (and even different assert configurations) to fail to match.
Instead, make this an executable test and ensure that round-tripping
through setting and getting behaves as expected.

Fixes rdar://46486517

@harlanhaskins
Copy link
Contributor Author

@swift-ci please test

@swift-ci
Copy link
Contributor

Build failed
Swift Test Linux Platform
Git Sha - c13f233052d461fe191a7a2cf7d63ec3eeed0213

@swift-ci
Copy link
Contributor

Build failed
Swift Test OS X Platform
Git Sha - c13f233052d461fe191a7a2cf7d63ec3eeed0213

@harlanhaskins
Copy link
Contributor Author

.dylib

Linux... 🤦‍♂️

@jrose-apple
Copy link
Contributor

I mean, Windows too. @compnerd just added a substitution for library names because of this.

// RUN: %target-swift-frontend -typecheck %S/stored-properties.swift -module-name StoredProperties -emit-parseable-module-interface-path %t/StoredProperties.swiftinterface
// RUN: %target-swift-frontend -emit-ir %s -I %t -enable-parseable-module-interface | %FileCheck %s -check-prefix CHECK -check-prefix COMMON
// RUN: %target-build-swift -emit-library %S/stored-properties.swift -module-name StoredProperties -o %t/libStoredProperties.dylib
Copy link
Member

Choose a reason for hiding this comment

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

Please use %target-library-name(StoredProperties)

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Thanks!


// REQUIRES: rdar_46486517
// RUN: %target-swift-frontend -typecheck %S/stored-properties.swift -enable-resilience -module-name StoredProperties -emit-parseable-module-interface-path %t/StoredProperties.swiftinterface
// RUN: %target-build-swift -emit-library %S/stored-properties.swift -module-name StoredProperties -o %t/libStoredProperties.dylib
Copy link
Member

Choose a reason for hiding this comment

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

Here too.

@harlanhaskins
Copy link
Contributor Author

@swift-ci please test

@swift-ci
Copy link
Contributor

swift-ci commented Jan 3, 2019

Build failed
Swift Test Linux Platform
Git Sha - c13f233052d461fe191a7a2cf7d63ec3eeed0213

@swift-ci
Copy link
Contributor

swift-ci commented Jan 3, 2019

Build failed
Swift Test OS X Platform
Git Sha - c13f233052d461fe191a7a2cf7d63ec3eeed0213

@harlanhaskins
Copy link
Contributor Author

@swift-ci please test

@swift-ci
Copy link
Contributor

swift-ci commented Jan 3, 2019

Build failed
Swift Test OS X Platform
Git Sha - cd844bb94a816885e09ef871d724f104e5456dc3

@swift-ci
Copy link
Contributor

swift-ci commented Jan 3, 2019

Build failed
Swift Test Linux Platform
Git Sha - cd844bb94a816885e09ef871d724f104e5456dc3

@harlanhaskins
Copy link
Contributor Author

@swift-ci please test

@swift-ci
Copy link
Contributor

swift-ci commented Jan 4, 2019

Build failed
Swift Test Linux Platform
Git Sha - aeeab879e52ff6d1e0d4ff579479111ac50823fc

@swift-ci
Copy link
Contributor

swift-ci commented Jan 4, 2019

Build failed
Swift Test OS X Platform
Git Sha - aeeab879e52ff6d1e0d4ff579479111ac50823fc

@harlanhaskins
Copy link
Contributor Author

@swift-ci please test

@swift-ci
Copy link
Contributor

Build failed
Swift Test Linux Platform
Git Sha - 1c8a39536dac9cdef9d6f84ea6bfca94a82d3a2b

@harlanhaskins harlanhaskins force-pushed the dropping-this-client branch from 1c8a395 to 881e1b0 Compare April 4, 2019 00:12
@harlanhaskins
Copy link
Contributor Author

@swift-ci please smoke test Linux

@harlanhaskins
Copy link
Contributor Author

@swift-ci please smoke test

This test was overfitting what it was trying to test, causing different
targets (and even different assert configurations) to fail to match.
Instead, make this an executable test and ensure that round-tripping
through setting and getting behaves as expected.

Fixes rdar://46486517
@harlanhaskins harlanhaskins force-pushed the dropping-this-client branch from 881e1b0 to 3efc8b9 Compare May 2, 2019 20:52
@harlanhaskins
Copy link
Contributor Author

@swift-ci please smoke test Linux

@harlanhaskins
Copy link
Contributor Author

@swift-ci please test

@swift-ci
Copy link
Contributor

swift-ci commented May 2, 2019

Build failed
Swift Test OS X Platform
Git Sha - 881e1b0708844c99ed3e9701cc1b23bba393df55

@swift-ci
Copy link
Contributor

swift-ci commented May 2, 2019

Build failed
Swift Test Linux Platform
Git Sha - 881e1b0708844c99ed3e9701cc1b23bba393df55

@harlanhaskins harlanhaskins merged commit f1b22b9 into swiftlang:master May 3, 2019
drodriguez added a commit to drodriguez/swift that referenced this pull request May 6, 2019
Test was enabled in swiftlang#21426, but it was not marked as executable, and the Android CI has been trying to run it in the builder, and failing.
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.

4 participants