Don't check for filenames in message-format tests
authorAleksey Kladov <aleksey.kladov@gmail.com>
Wed, 14 Mar 2018 21:37:00 +0000 (00:37 +0300)
committerAleksey Kladov <aleksey.kladov@gmail.com>
Wed, 14 Mar 2018 21:37:26 +0000 (00:37 +0300)
Depending on the OS, there might be an additional artifacts for
debuginfo (dSYM folder for macs, .pbd file for windows). Given that we
can't disable `.pdb` for windows[1], let's just ignore all filenames!

[1]: https://github.com/rust-lang/rust/pull/28505)

tests/testsuite/build.rs

index e21597f84f084be6024eb96c117c9bb1fe5f1403..3df97b4016e6a1d50779c335835a05337cd9d88a 100644 (file)
@@ -3106,9 +3106,6 @@ fn compiler_json_error_format() {
             version = "0.5.0"
             authors = ["wycats@example.com"]
 
-            [profile.dev]
-            debug = false   # prevent the *.dSYM from affecting the test result
-
             [dependencies.bar]
             path = "bar"
         "#)
@@ -3142,7 +3139,7 @@ fn compiler_json_error_format() {
         "reason":"compiler-artifact",
         "profile": {
             "debug_assertions": true,
-            "debuginfo": null,
+            "debuginfo": 2,
             "opt_level": "0",
             "overflow_checks": true,
             "test": false
@@ -3182,13 +3179,13 @@ fn compiler_json_error_format() {
         },
         "profile": {
             "debug_assertions": true,
-            "debuginfo": null,
+            "debuginfo": 2,
             "opt_level": "0",
             "overflow_checks": true,
             "test": false
         },
         "features": [],
-        "filenames": ["[..]"],
+        "filenames": "{...}",
         "fresh": false
     }
 "#));
@@ -3202,7 +3199,7 @@ fn compiler_json_error_format() {
         "reason":"compiler-artifact",
         "profile": {
             "debug_assertions": true,
-            "debuginfo": null,
+            "debuginfo": 2,
             "opt_level": "0",
             "overflow_checks": true,
             "test": false
@@ -3230,13 +3227,13 @@ fn compiler_json_error_format() {
         },
         "profile": {
             "debug_assertions": true,
-            "debuginfo": null,
+            "debuginfo": 2,
             "opt_level": "0",
             "overflow_checks": true,
             "test": false
         },
         "features": [],
-        "filenames": ["[..]"],
+        "filenames": "{...}",
         "fresh": true
     }
 "#));
@@ -3297,7 +3294,7 @@ fn message_format_json_forward_stderr() {
             "test":false
         },
         "features":[],
-        "filenames":["[..]"],
+        "filenames": "{...}",
         "fresh": false
     }
 "#));