Skip to content

Commit

Permalink
Fix linkage-attr/issue-10755.rs ui test on WSL
Browse files Browse the repository at this point in the history
It checked for a "not found", but on WSL with appendWindowsPath=true,
PermissionDenied is the error instead.
  • Loading branch information
Noratrieb committed Jul 27, 2022
1 parent 29cfefd commit 62ad16f
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/test/ui/linkage-attr/issue-10755.rs
Original file line number Diff line number Diff line change
@@ -1,7 +1,10 @@
// build-fail
// dont-check-compiler-stderr
// compile-flags: -C linker=llllll -C linker-flavor=ld
// error-pattern: linker `llllll` not found
// error-pattern: `llllll`

// Before, the error-pattern checked for "not found". On WSL with appendWindowsPath=true, running
// in invalid command returns a PermissionDenied instead.

fn main() {
}

0 comments on commit 62ad16f

Please sign in to comment.