Attmept to fix a spurious failure on AppVeyor

I *think* the issue is that `link.exe` is generating debuginfo in the background
which keeps the file open and prevents us from deleting it, but hopefully by
disabling debug information we'll either be able to confirm or deny this
hypothesis.
This commit is contained in:
Alex Crichton 2018-05-03 08:01:25 -07:00
parent 4dc5db2db5
commit db3328f8f7
2 changed files with 10 additions and 4 deletions

View File

@ -3742,6 +3742,9 @@ fn rename_with_link_search_path() {
name = "bar"
version = "0.5.0"
authors = []
[profile.dev]
debug = false
"#,
)
.file(

View File

@ -502,6 +502,9 @@ fn changing_bin_features_caches_targets() {
[features]
foo = []
[profile.dev]
debug = false
"#,
)
.file(
@ -523,7 +526,7 @@ fn changing_bin_features_caches_targets() {
.with_stderr(
"\
[..]Compiling foo v0.0.1 ([..])
[FINISHED] dev [unoptimized + debuginfo] target(s) in [..]
[FINISHED] dev [unoptimized] target(s) in [..]
[RUNNING] `target[/]debug[/]foo[EXE]`
",
),
@ -537,7 +540,7 @@ fn changing_bin_features_caches_targets() {
.with_stderr(
"\
[..]Compiling foo v0.0.1 ([..])
[FINISHED] dev [unoptimized + debuginfo] target(s) in [..]
[FINISHED] dev [unoptimized] target(s) in [..]
[RUNNING] `target[/]debug[/]foo[EXE]`
",
),
@ -552,7 +555,7 @@ fn changing_bin_features_caches_targets() {
.with_stdout("feature off")
.with_stderr(
"\
[FINISHED] dev [unoptimized + debuginfo] target(s) in [..]
[FINISHED] dev [unoptimized] target(s) in [..]
[RUNNING] `target[/]debug[/]foo[EXE]`
",
),
@ -565,7 +568,7 @@ fn changing_bin_features_caches_targets() {
.with_stdout("feature on")
.with_stderr(
"\
[FINISHED] dev [unoptimized + debuginfo] target(s) in [..]
[FINISHED] dev [unoptimized] target(s) in [..]
[RUNNING] `target[/]debug[/]foo[EXE]`
",
),