You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/tools/miri/tests/fail-dep/libc/fs/unix_open_missing_required_mode.rs
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -8,5 +8,5 @@ fn main() {
8
8
fntest_file_open_missing_needed_mode(){
9
9
let name = b"missing_arg.txt\0";
10
10
let name_ptr = name.as_ptr().cast::<libc::c_char>();
11
-
let _fd = unsafe{ libc::open(name_ptr, libc::O_CREAT)};//~ ERROR: Undefined Behavior: incorrect number of arguments for `open` with `O_CREAT`: got 2, expected at least 3
11
+
let _fd = unsafe{ libc::open(name_ptr, libc::O_CREAT)};//~ ERROR: Undefined Behavior: incorrect number of arguments for `open(pathname, O_CREAT, ...)`: got 2, expected at least 3
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ incorrect number of arguments for `open` with `O_CREAT`: got 2, expected at least 3
4
+
LL | ... { libc::open(name_ptr, libc::O_CREAT) };
5
+
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ incorrect number of arguments for `open(pathname, O_CREAT, ...)`: got 2, expected at least 3
6
6
|
7
7
= help: this indicates a bug in the program: it performed an invalid operation, and caused Undefined Behavior
8
8
= help: see https://doc.rust-lang.org/nightly/reference/behavior-considered-undefined.html for further information
0 commit comments