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
commit bc7df81642
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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.
//