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:
Mazdak Farrokhzad
2019-10-08 05:02:44 +02:00
committed by GitHub
+3 -1
View File
@@ -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.
//