Attmept to fix a spurious failure on AppVeyor
authorAlex Crichton <alex@alexcrichton.com>
Thu, 3 May 2018 15:01:25 +0000 (08:01 -0700)
committerAlex Crichton <alex@alexcrichton.com>
Thu, 3 May 2018 15:57:36 +0000 (08:57 -0700)
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.

tests/testsuite/build_script.rs
tests/testsuite/freshness.rs

index ec68f6cd6179e088c02425ab28e48592eb6d674c..b3cf382e2a7d9370c779aa53756fa201082205eb 100644 (file)
@@ -3742,6 +3742,9 @@ fn rename_with_link_search_path() {
             name = "bar"
             version = "0.5.0"
             authors = []
+
+            [profile.dev]
+            debug = false
         "#,
         )
         .file(
index 09f324d8ea7efed5a7c657301e074f77606034fd..cd12af83a5203a45340d1d8a8e890aaec2455186 100644 (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]`
 ",
             ),