mirror of
https://github.com/rust-lang/rust.git
synced 2026-05-21 17:52:12 +03:00
Rollup merge of #65187 - Wind-River:master_before_merge, r=rkruppe
use 'invalid argument' for vxWorks vxWorks is using "invalid argument" instead of "Invalid argument" in reporting invalid options r? @rkruppe
This commit is contained in:
+3
-1
@@ -3112,8 +3112,10 @@ fn c<T: Clone>(t: &T) -> T { t.clone() }
|
||||
|
||||
#[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.
|
||||
//
|
||||
|
||||
Reference in New Issue
Block a user