File tree 1 file changed +10
-0
lines changed
1 file changed +10
-0
lines changed Original file line number Diff line number Diff line change 2
2
// `std::env::current_exe` will return the path of *that* program, and not
3
3
// the Rust program itself.
4
4
5
+ // This behavior is only known to be supported on Linux and FreeBSD, see
6
+ // https://mail-index.netbsd.org/tech-toolchain/2024/07/27/msg004469.html
7
+
5
8
use std:: io:: { BufRead , BufReader } ;
6
9
use std:: path:: { Path , PathBuf } ;
7
10
use std:: process:: Command ;
8
11
9
12
mod common;
10
13
11
14
fn main ( ) {
15
+ if cfg ! ( target_os = "netbsd" ) {
16
+ // NetBSD doesn't support this silliness, so because this is an fn main test,
17
+ // just pass it on there. If we used ui-test or something we'd use
18
+ //@ ignore-netbsd
19
+ return ;
20
+ }
21
+
12
22
if std:: env:: var ( VAR ) . is_err ( ) {
13
23
// the parent waits for the child; then we then handle either printing
14
24
// "test result: ok", "test result: ignored", or panicking.
You can’t perform that action at this time.
0 commit comments