Skip to content

Commit 6d91006

Browse files
committed
more tests
1 parent 9b408f4 commit 6d91006

File tree

6 files changed

+15
-2
lines changed

6 files changed

+15
-2
lines changed

tests/native-lib/fail/trace_read.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
//@only-target: gnu
33
//@only-target: x86
44
//@only-on-host
5-
//@compile-flags: -Zmiri-permissive-provenance -Zmiri-native-lib-enable-tracing
5+
//@compile-flags: -Zmiri-native-lib-enable-tracing
66

77
extern "C" {
88
fn do_nothing();

tests/native-lib/fail/trace_write.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
//@only-target: gnu
33
//@only-target: x86
44
//@only-on-host
5-
//@compile-flags: -Zmiri-permissive-provenance -Zmiri-native-lib-enable-tracing
5+
//@compile-flags: -Zmiri-native-lib-enable-tracing
66

77
extern "C" {
88
fn init_n(n: i32, ptr: *mut u8);

tests/native-lib/pass/ptr_read_access.rs

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,10 @@
1+
//revisions: trace notrace
2+
//@[trace] only-target: linux
3+
//@[trace] only-target: gnu
4+
//@[trace] only-target: x86
5+
//@[trace] only-on-host
6+
//@[trace] compile-flags: -Zmiri-native-lib-enable-tracing
7+
18
fn main() {
29
test_access_pointer();
310
test_access_simple();

tests/native-lib/pass/ptr_write_access.rs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
1+
//revisions: trace notrace
2+
//@[trace] only-target: linux
3+
//@[trace] only-target: gnu
4+
//@[trace] only-target: x86
5+
//@[trace] only-on-host
6+
//@[trace] compile-flags: -Zmiri-native-lib-enable-tracing
17
//@compile-flags: -Zmiri-permissive-provenance
28

39
#![feature(box_as_ptr)]

0 commit comments

Comments
 (0)