-
Notifications
You must be signed in to change notification settings - Fork 13.7k
changes for vxworks #146073
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
Open
Anupamvashistha2002
wants to merge
1
commit into
rust-lang:master
Choose a base branch
from
Anupamvashistha2002:av_stdlib_changes
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
+24
−17
Open
changes for vxworks #146073
Changes from all commits
Commits
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change | ||||||
---|---|---|---|---|---|---|---|---|
|
@@ -21,7 +21,7 @@ macro_rules! or_panic { | |||||||
} | ||||||||
|
||||||||
#[test] | ||||||||
#[cfg_attr(target_os = "android", ignore)] // Android SELinux rules prevent creating Unix sockets | ||||||||
#[cfg_attr(any(target_os = "vxworks", target_os = "android"), ignore)] | ||||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Can you make these look like this, with some reasoning for why this test is ignored on vxworks (is there a fundamental reason, is it just not implemented yet, etc)?
Suggested change
|
||||||||
fn basic() { | ||||||||
let dir = tmpdir(); | ||||||||
let socket_path = dir.path().join("sock"); | ||||||||
|
@@ -49,6 +49,7 @@ fn basic() { | |||||||
} | ||||||||
|
||||||||
#[test] | ||||||||
#[cfg_attr(target_os = "vxworks", ignore)] | ||||||||
fn vectored() { | ||||||||
let (mut s1, mut s2) = or_panic!(UnixStream::pair()); | ||||||||
|
||||||||
|
@@ -69,6 +70,7 @@ fn vectored() { | |||||||
} | ||||||||
|
||||||||
#[test] | ||||||||
#[cfg_attr(target_os = "vxworks", ignore)] | ||||||||
fn pair() { | ||||||||
let msg1 = b"hello"; | ||||||||
let msg2 = b"world!"; | ||||||||
|
@@ -92,7 +94,7 @@ fn pair() { | |||||||
} | ||||||||
|
||||||||
#[test] | ||||||||
#[cfg_attr(target_os = "android", ignore)] // Android SELinux rules prevent creating Unix sockets | ||||||||
#[cfg_attr(any(target_os = "vxworks", target_os = "android"), ignore)] | ||||||||
fn try_clone() { | ||||||||
let dir = tmpdir(); | ||||||||
let socket_path = dir.path().join("sock"); | ||||||||
|
@@ -119,7 +121,7 @@ fn try_clone() { | |||||||
} | ||||||||
|
||||||||
#[test] | ||||||||
#[cfg_attr(target_os = "android", ignore)] // Android SELinux rules prevent creating Unix sockets | ||||||||
#[cfg_attr(any(target_os = "vxworks", target_os = "android"), ignore)] | ||||||||
fn iter() { | ||||||||
let dir = tmpdir(); | ||||||||
let socket_path = dir.path().join("sock"); | ||||||||
|
@@ -142,6 +144,7 @@ fn iter() { | |||||||
} | ||||||||
|
||||||||
#[test] | ||||||||
#[cfg_attr(target_os = "vxworks", ignore)] | ||||||||
fn long_path() { | ||||||||
let dir = tmpdir(); | ||||||||
let socket_path = dir.path().join( | ||||||||
|
@@ -169,7 +172,7 @@ fn long_path() { | |||||||
|
||||||||
#[test] | ||||||||
#[cfg(not(target_os = "nto"))] | ||||||||
#[cfg_attr(target_os = "android", ignore)] // Android SELinux rules prevent creating Unix sockets | ||||||||
#[cfg_attr(any(target_os = "vxworks", target_os = "android"), ignore)] | ||||||||
fn timeouts() { | ||||||||
let dir = tmpdir(); | ||||||||
let socket_path = dir.path().join("sock"); | ||||||||
|
@@ -197,7 +200,7 @@ fn timeouts() { | |||||||
} | ||||||||
|
||||||||
#[test] | ||||||||
#[cfg_attr(target_os = "android", ignore)] // Android SELinux rules prevent creating Unix sockets | ||||||||
#[cfg_attr(any(target_os = "vxworks", target_os = "android"), ignore)] | ||||||||
fn test_read_timeout() { | ||||||||
let dir = tmpdir(); | ||||||||
let socket_path = dir.path().join("sock"); | ||||||||
|
@@ -217,7 +220,7 @@ fn test_read_timeout() { | |||||||
} | ||||||||
|
||||||||
#[test] | ||||||||
#[cfg_attr(target_os = "android", ignore)] // Android SELinux rules prevent creating Unix sockets | ||||||||
#[cfg_attr(any(target_os = "vxworks", target_os = "android"), ignore)] | ||||||||
fn test_read_with_timeout() { | ||||||||
let dir = tmpdir(); | ||||||||
let socket_path = dir.path().join("sock"); | ||||||||
|
@@ -245,7 +248,7 @@ fn test_read_with_timeout() { | |||||||
// Ensure the `set_read_timeout` and `set_write_timeout` calls return errors | ||||||||
// when passed zero Durations | ||||||||
#[test] | ||||||||
#[cfg_attr(target_os = "android", ignore)] // Android SELinux rules prevent creating Unix sockets | ||||||||
#[cfg_attr(any(target_os = "vxworks", target_os = "android"), ignore)] | ||||||||
fn test_unix_stream_timeout_zero_duration() { | ||||||||
let dir = tmpdir(); | ||||||||
let socket_path = dir.path().join("sock"); | ||||||||
|
@@ -265,7 +268,7 @@ fn test_unix_stream_timeout_zero_duration() { | |||||||
} | ||||||||
|
||||||||
#[test] | ||||||||
#[cfg_attr(target_os = "android", ignore)] // Android SELinux rules prevent creating Unix sockets | ||||||||
#[cfg_attr(any(target_os = "vxworks", target_os = "android"), ignore)] | ||||||||
fn test_unix_datagram() { | ||||||||
let dir = tmpdir(); | ||||||||
let path1 = dir.path().join("sock1"); | ||||||||
|
@@ -282,7 +285,7 @@ fn test_unix_datagram() { | |||||||
} | ||||||||
|
||||||||
#[test] | ||||||||
#[cfg_attr(target_os = "android", ignore)] // Android SELinux rules prevent creating Unix sockets | ||||||||
#[cfg_attr(any(target_os = "vxworks", target_os = "android"), ignore)] | ||||||||
fn test_unnamed_unix_datagram() { | ||||||||
let dir = tmpdir(); | ||||||||
let path1 = dir.path().join("sock1"); | ||||||||
|
@@ -300,7 +303,7 @@ fn test_unnamed_unix_datagram() { | |||||||
} | ||||||||
|
||||||||
#[test] | ||||||||
#[cfg_attr(target_os = "android", ignore)] // Android SELinux rules prevent creating Unix sockets | ||||||||
#[cfg_attr(any(target_os = "vxworks", target_os = "android"), ignore)] | ||||||||
fn test_unix_datagram_connect_to_recv_addr() { | ||||||||
let dir = tmpdir(); | ||||||||
let path1 = dir.path().join("sock1"); | ||||||||
|
@@ -325,7 +328,7 @@ fn test_unix_datagram_connect_to_recv_addr() { | |||||||
} | ||||||||
|
||||||||
#[test] | ||||||||
#[cfg_attr(target_os = "android", ignore)] // Android SELinux rules prevent creating Unix sockets | ||||||||
#[cfg_attr(any(target_os = "vxworks", target_os = "android"), ignore)] | ||||||||
fn test_connect_unix_datagram() { | ||||||||
let dir = tmpdir(); | ||||||||
let path1 = dir.path().join("sock1"); | ||||||||
|
@@ -352,7 +355,7 @@ fn test_connect_unix_datagram() { | |||||||
} | ||||||||
|
||||||||
#[test] | ||||||||
#[cfg_attr(target_os = "android", ignore)] // Android SELinux rules prevent creating Unix sockets | ||||||||
#[cfg_attr(any(target_os = "vxworks", target_os = "android"), ignore)] | ||||||||
fn test_unix_datagram_recv() { | ||||||||
let dir = tmpdir(); | ||||||||
let path1 = dir.path().join("sock1"); | ||||||||
|
@@ -370,6 +373,7 @@ fn test_unix_datagram_recv() { | |||||||
} | ||||||||
|
||||||||
#[test] | ||||||||
#[cfg_attr(target_os = "vxworks", ignore)] | ||||||||
fn datagram_pair() { | ||||||||
let msg1 = b"hello"; | ||||||||
let msg2 = b"world!"; | ||||||||
|
@@ -395,7 +399,7 @@ fn datagram_pair() { | |||||||
// Ensure the `set_read_timeout` and `set_write_timeout` calls return errors | ||||||||
// when passed zero Durations | ||||||||
#[test] | ||||||||
#[cfg_attr(target_os = "android", ignore)] // Android SELinux rules prevent creating Unix sockets | ||||||||
#[cfg_attr(any(target_os = "vxworks", target_os = "android"), ignore)] | ||||||||
fn test_unix_datagram_timeout_zero_duration() { | ||||||||
let dir = tmpdir(); | ||||||||
let path = dir.path().join("sock"); | ||||||||
|
@@ -549,7 +553,7 @@ fn test_abstract_no_pathname_and_not_unnamed() { | |||||||
} | ||||||||
|
||||||||
#[test] | ||||||||
#[cfg_attr(target_os = "android", ignore)] // Android SELinux rules prevent creating Unix sockets | ||||||||
#[cfg_attr(any(target_os = "vxworks", target_os = "android"), ignore)] | ||||||||
fn test_unix_stream_peek() { | ||||||||
let (txdone, rxdone) = crate::sync::mpsc::channel(); | ||||||||
|
||||||||
|
@@ -582,7 +586,7 @@ fn test_unix_stream_peek() { | |||||||
} | ||||||||
|
||||||||
#[test] | ||||||||
#[cfg_attr(target_os = "android", ignore)] // Android SELinux rules prevent creating Unix sockets | ||||||||
#[cfg_attr(any(target_os = "vxworks", target_os = "android"), ignore)] | ||||||||
fn test_unix_datagram_peek() { | ||||||||
let dir = tmpdir(); | ||||||||
let path1 = dir.path().join("sock"); | ||||||||
|
@@ -607,7 +611,7 @@ fn test_unix_datagram_peek() { | |||||||
} | ||||||||
|
||||||||
#[test] | ||||||||
#[cfg_attr(target_os = "android", ignore)] // Android SELinux rules prevent creating Unix sockets | ||||||||
#[cfg_attr(any(target_os = "vxworks", target_os = "android"), ignore)] | ||||||||
fn test_unix_datagram_peek_from() { | ||||||||
let dir = tmpdir(); | ||||||||
let path1 = dir.path().join("sock"); | ||||||||
|
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
This is cleaner as a
cfg_select!
, e.g.