Skip to content

Commit

Permalink
use 'invalid argument' for vxWorks
Browse files Browse the repository at this point in the history
  • Loading branch information
BaoshanPang committed Oct 7, 2019
1 parent 702b45e commit 45f7186
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/libstd/fs.rs
Expand Up @@ -3112,8 +3112,10 @@ mod tests {

#[cfg(windows)]
let invalid_options = 87; // ERROR_INVALID_PARAMETER
#[cfg(unix)]
#[cfg(all(unix, not(target_os = "vxworks")))]
let invalid_options = "Invalid argument";
#[cfg(target_os = "vxworks")]
let invalid_options = "invalid argument";

// Test various combinations of creation modes and access modes.
//
Expand Down

0 comments on commit 45f7186

Please sign in to comment.