-
Notifications
You must be signed in to change notification settings - Fork 13.3k
Support both static and dynamic linking mode in testing for vxWorks #63789
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
Conversation
rebase code from rust-lang/rust master branch
if environment variables 'RUST_TEST_DYLINK' is set to 1, then run test in 'pure' dynamic linking mode
Support static and dynamic linking mode for vxWorks in running test suite
behavior), so skip the following tests: net::tcp::tests::timeouts net::udp::tests::timeouts
Skip socket timeout tests on VxWorks
Thanks! With a name like Additionally could the other logic about selecting |
if environment variables 'RUST_TEST_DYLINK' is set to 1, then run test in 'pure' dynamic linking mode
run test for vxWorks in 'pure' static linking mode by default;
I have revised the code in more VxWorks specific way which should be safer. @alexcrichton |
src/tools/compiletest/src/runtest.rs
Outdated
|
||
fn is_vxworks_pure_dynamic(&self) -> bool { | ||
if self.config.target.contains("vxworks") { | ||
match env::var("RUST_TEST_DYLINK") { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could this branch perhaps just be !self.is_vxworks_pure_static()
? (basically reading the env var only once)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could this branch perhaps just be
!self.is_vxworks_pure_static()
? (basically reading the env var only once)
For !self.is_vxworks_pure_static(), it would be true for all non-vxworks targets which is not what we want.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Er sorry I meant just in this branch, so only if the target is vxworks do we delegate to is_vxworks_pure_static
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I see. I have uploaded the code that simply the function is_vxworks_pure_dynamic().
sync with rust-lang/rust branch master
change RUST_TEST_DYLINK to RUST_VXWORKS_TEST_DYLINK
simplify is_vxworks_pure_dynamic()
sync with rust-lang/rust master branch
@bors: r+ |
📌 Commit 414d104 has been approved by |
Support both static and dynamic linking mode in testing for vxWorks 1. Support both static and dynamic linking mode in testing for vxWorks 2. Ignore unsupported test cases: net:tcp:tests:timeouts and net:ucp:tests:timeouts r? @alexcrichton
☀️ Test successful - checks-azure |
r? @alexcrichton