about summary refs log tree commit diff
path: root/src/test/ui
diff options
context:
space:
mode:
authorDylan DPC <99973273+Dylan-DPC@users.noreply.github.com>2022-03-29 17:11:51 +0200
committerGitHub <noreply@github.com>2022-03-29 17:11:51 +0200
commit1830e8fdcd047c986e4d7fcdf3a1f8ae1a53deeb (patch)
tree3e359e312521beb90a0169103d816256561e4c46 /src/test/ui
parente2301ca54320659835467072f37201591db959b5 (diff)
parentb1c3494d88548222b7af7e8309a5446ea474319e (diff)
downloadrust-1830e8fdcd047c986e4d7fcdf3a1f8ae1a53deeb.tar.gz
rust-1830e8fdcd047c986e4d7fcdf3a1f8ae1a53deeb.zip
Rollup merge of #94566 - yanganto:show-ignore-message, r=m-ou-se
Show ignore message in console and json output

- Provide ignore the message in console and JSON output
- Modify the ignore message style in the log file

related: #92714
Diffstat (limited to 'src/test/ui')
-rw-r--r--src/test/ui/test-attrs/test-type.rs5
-rw-r--r--src/test/ui/test-attrs/test-type.run.stdout2
2 files changed, 3 insertions, 4 deletions
diff --git a/src/test/ui/test-attrs/test-type.rs b/src/test/ui/test-attrs/test-type.rs
index 3f0fa81373f..f99e476eaba 100644
--- a/src/test/ui/test-attrs/test-type.rs
+++ b/src/test/ui/test-attrs/test-type.rs
@@ -5,7 +5,6 @@
 // ignore-emscripten no threads support
 // run-pass
 
-
 #[test]
 fn test_ok() {
     let _a = true;
@@ -18,9 +17,9 @@ fn test_panic() {
 }
 
 #[test]
-#[ignore]
+#[ignore = "msg"]
 fn test_no_run() {
-    loop{
+    loop {
         println!("Hello, world");
     }
 }
diff --git a/src/test/ui/test-attrs/test-type.run.stdout b/src/test/ui/test-attrs/test-type.run.stdout
index be2fd8ae68c..143c13a36b7 100644
--- a/src/test/ui/test-attrs/test-type.run.stdout
+++ b/src/test/ui/test-attrs/test-type.run.stdout
@@ -1,6 +1,6 @@
 
 running 3 tests
-test test_no_run ... ignored
+test test_no_run ... ignored, msg
 test test_ok ... ok
 test test_panic - should panic ... ok