Skip to content

Commit

Permalink
Also check that tests-listing-format-json.rs produces JSON Lines
Browse files Browse the repository at this point in the history
  • Loading branch information
Zalathar committed Jun 21, 2024
1 parent 0e110a5 commit 1b9c8f9
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
3 changes: 1 addition & 2 deletions tests/ui/test-attrs/tests-listing-format-json.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,8 @@
//@ run-flags: --list --format json -Zunstable-options
//@ run-pass
//@ check-run-results
//@ check-run-stdout-is-json-lines
//@ only-nightly
//@ normalize-stdout-test: "fake-test-src-base/test-attrs/" -> "$$DIR/"
//@ normalize-stdout-test: "fake-test-src-base\\test-attrs\\" -> "$$DIR/"

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

Expand Down
6 changes: 3 additions & 3 deletions tests/ui/test-attrs/tests-listing-format-json.run.stdout
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{ "type": "suite", "event": "discovery" }
{ "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 }
{ "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 }
{ "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 }
{ "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 }
{ "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 }
{ "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 }
{ "type": "suite", "event": "completed", "tests": 3, "benchmarks": 0, "total": 3, "ignored": 1 }

0 comments on commit 1b9c8f9

Please sign in to comment.