Skip to content

Commit bd1080e

Browse files
committed
Also check that tests-listing-format-json.rs produces JSON Lines
1 parent ec1d131 commit bd1080e

File tree

2 files changed

+4
-5
lines changed

2 files changed

+4
-5
lines changed

tests/ui/test-attrs/tests-listing-format-json.rs

+1-2
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,8 @@
33
//@ run-flags: --list --format json -Zunstable-options
44
//@ run-pass
55
//@ check-run-results
6+
//@ check-run-stdout-is-json-lines
67
//@ only-nightly
7-
//@ normalize-stdout-test: "fake-test-src-base/test-attrs/" -> "$$DIR/"
8-
//@ normalize-stdout-test: "fake-test-src-base\\test-attrs\\" -> "$$DIR/"
98

109
// Checks the listing of tests with --format json.
1110

Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{ "type": "suite", "event": "discovery" }
2-
{ "type": "test", "event": "discovered", "name": "a_test", "ignore": false, "ignore_message": "", "source_path": "$DIR/tests-listing-format-json.rs", "start_line": 21, "start_col": 4, "end_line": 21, "end_col": 10 }
3-
{ "type": "test", "event": "discovered", "name": "m_test", "ignore": false, "ignore_message": "", "source_path": "$DIR/tests-listing-format-json.rs", "start_line": 14, "start_col": 4, "end_line": 14, "end_col": 10 }
4-
{ "type": "test", "event": "discovered", "name": "z_test", "ignore": true, "ignore_message": "not yet implemented", "source_path": "$DIR/tests-listing-format-json.rs", "start_line": 18, "start_col": 4, "end_line": 18, "end_col": 10 }
2+
{ "type": "test", "event": "discovered", "name": "a_test", "ignore": false, "ignore_message": "", "source_path": "$DIR/tests-listing-format-json.rs", "start_line": 20, "start_col": 4, "end_line": 20, "end_col": 10 }
3+
{ "type": "test", "event": "discovered", "name": "m_test", "ignore": false, "ignore_message": "", "source_path": "$DIR/tests-listing-format-json.rs", "start_line": 13, "start_col": 4, "end_line": 13, "end_col": 10 }
4+
{ "type": "test", "event": "discovered", "name": "z_test", "ignore": true, "ignore_message": "not yet implemented", "source_path": "$DIR/tests-listing-format-json.rs", "start_line": 17, "start_col": 4, "end_line": 17, "end_col": 10 }
55
{ "type": "suite", "event": "completed", "tests": 3, "benchmarks": 0, "total": 3, "ignored": 1 }

0 commit comments

Comments
 (0)