File tree Expand file tree Collapse file tree 1 file changed +10
-0
lines changed Expand file tree Collapse file tree 1 file changed +10
-0
lines changed Original file line number Diff line number Diff line change 22// `std::env::current_exe` will return the path of *that* program, and not
33// the Rust program itself.
44
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+
58use std:: io:: { BufRead , BufReader } ;
69use std:: path:: { Path , PathBuf } ;
710use std:: process:: Command ;
811
912mod common;
1013
1114fn 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+
1222 if std:: env:: var ( VAR ) . is_err ( ) {
1323 // the parent waits for the child; then we then handle either printing
1424 // "test result: ok", "test result: ignored", or panicking.
You can’t perform that action at this time.
0 commit comments