Skip to content

Commit a2d9f2e

Browse files
author
Ellen Arteca
committed
only-on-host for c ffi tests
1 parent 840c2a2 commit a2d9f2e

File tree

5 files changed

+5
-1
lines changed

5 files changed

+5
-1
lines changed

tests/fail/external_C/function_not_in_SO.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
//@only-linux
2+
//@only-on-host
23
//@compile-flags: -Zmiri-external_c_so_file=tests/external_C/libtestlib.so
34

45
extern "C" {

tests/panic/external_C/incorrect_SO_file.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
//@rustc-env: RUST_BACKTRACE=0
22
//@only-linux
3+
//@only-on-host
34
//@compile-flags: -Zmiri-external_c_so_file=tests/external_C/badpath.so
45

56
extern "C" {

tests/panic/external_C/incorrect_SO_file.stderr

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ note: the compiler unexpectedly panicked. this is a bug.
77

88
note: we would appreciate a bug report: https://github.com/rust-lang/rust/issues/new?labels=C-bug%2C+I-ICE%2C+T-compiler&template=ice.md
99

10-
note: rustc 1.64.0-nightly (6077b7cda 2022-07-15) running on x86_64-unknown-linux-gnu
10+
note: rustc 1.64.0-nightly (db4135175 2022-07-16) running on x86_64-unknown-linux-gnu
1111

1212
note: compiler flags: -Z ui-testing -Z miri-external_c_so_file=tests/external_C/badpath.so
1313

tests/pass/external_C/int_c_tests.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
//@only-linux
2+
//@only-on-host
23
//@compile-flags: -Zmiri-external_c_so_file=tests/external_C/libtestlib.so
34

45
extern "C" {

tests/pass/external_C/print_from_c.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
//@only-linux
2+
//@only-on-host
23
//@compile-flags: -Zmiri-external_c_so_file=tests/external_C/libtestlib.so
34

45
extern "C" {

0 commit comments

Comments
 (0)