Skip to content

Commit 38228c3

Browse files
committed
Deliberately inject faults to verify CI tests these paths
1 parent 8528b5d commit 38228c3

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

cargo-auditable/src/rustc_wrapper.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -129,6 +129,7 @@ fn rustc_command_with_audit_data(rustc_path: &OsStr) -> Option<Command> {
129129
if is_apple(&target_info) {
130130
if args.bare_linker() {
131131
command.arg("-Clink-arg=-u,_AUDITABLE_VERSION_INFO");
132+
panic!("Apple codepath reached, CI should fail");
132133
} else {
133134
command.arg("-Clink-arg=-Wl,-u,_AUDITABLE_VERSION_INFO");
134135
}
@@ -143,6 +144,7 @@ fn rustc_command_with_audit_data(rustc_path: &OsStr) -> Option<Command> {
143144
if args.bare_linker() {
144145
command.arg("-Clink-arg=-u");
145146
command.arg("-Clink-arg=AUDITABLE_VERSION_INFO");
147+
panic!("POSIX codepath reached, CI should fail");
146148
} else {
147149
command.arg("-Clink-arg=-Wl,-u,AUDITABLE_VERSION_INFO");
148150
}

0 commit comments

Comments
 (0)