From: Alex Crichton Date: Thu, 3 May 2018 15:01:25 +0000 (-0700) Subject: Attmept to fix a spurious failure on AppVeyor X-Git-Tag: archive/raspbian/0.35.0-2+rpi1~3^2^2^2^2^2^2^2~22^2~1^2~20^2 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=db3328f8f7b96701faa62756a0d55ed71899d894;p=cargo.git 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. --- diff --git a/tests/testsuite/build_script.rs b/tests/testsuite/build_script.rs index ec68f6cd6..b3cf382e2 100644 --- a/tests/testsuite/build_script.rs +++ b/tests/testsuite/build_script.rs @@ -3742,6 +3742,9 @@ fn rename_with_link_search_path() { name = "bar" version = "0.5.0" authors = [] + + [profile.dev] + debug = false "#, ) .file( diff --git a/tests/testsuite/freshness.rs b/tests/testsuite/freshness.rs index 09f324d8e..cd12af83a 100644 --- a/tests/testsuite/freshness.rs +++ b/tests/testsuite/freshness.rs @@ -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]` ", ),