Files
rtk-ai__rtk/tests/fixtures/ctest_mixed_raw.txt
xiaozh 87702bf339 fix(ctest): address review round 3
- summary line is authoritative for pass/fail routing and counts; a parsed
  failure no longer overrides "0 tests failed" (--repeat until-pass)
- recognise retry result lines without the N/M prefix; the last result per
  test number replaces the earlier one in place
- pre-result diagnostics are only claimed when the nearest boundary is a
  Start line, so -j runs no longer absorb other tests' result lines
- failed entries are labeled "#N name (status, duration)" with their details
  indented beneath; empty blocks can no longer shift attribution
- failed: and skipped: lists are capped at CAP_LIST with tee recovery; the
  duplicated CTest FAILED name list is dropped, its trailer lines are kept
- failure detail keeps 2 head lines + 8 tail lines so pre-result diagnostics
  such as "Could not find executable" survive truncation
- fixtures re-captured as stdout followed by stderr, matching runner.rs; add
  real -j4 and --repeat until-pass:2 captures

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
2026-08-29 10:06:57 +08:00

61 lines
2.2 KiB
Plaintext

Test project /tmp/build
Start 1: pass_fast
1/11 Test #1: pass_fast ........................ Passed 0.00 sec
Start 2: pass_slow
2/11 Test #2: pass_slow ........................ Passed 0.31 sec
Start 3: pass_medium
3/11 Test #3: pass_medium ...................... Passed 0.11 sec
Start 4: regex_fail
4/11 Test #4: regex_fail .......................***Failed Required regular expression not found. Regex=[expected-token
] 0.01 sec
Start 5: skipped_case
5/11 Test #5: skipped_case .....................***Skipped 0.01 sec
Start 6: disabled_case
6/11 Test #6: disabled_case ....................***Not Run (Disabled) 0.00 sec
Start 7: missing_case
Could not find executable missing-command
Looked in the following places:
missing-command
missing-command
Release/missing-command
Release/missing-command
Debug/missing-command
Debug/missing-command
MinSizeRel/missing-command
MinSizeRel/missing-command
RelWithDebInfo/missing-command
RelWithDebInfo/missing-command
Deployment/missing-command
Deployment/missing-command
Development/missing-command
Development/missing-command
7/11 Test #7: missing_case .....................***Not Run 0.00 sec
Start 8: timeout_case
8/11 Test #8: timeout_case .....................***Timeout 1.06 sec
Start 9: plain_fail
9/11 Test #9: plain_fail .......................***Failed 0.00 sec
Start 10: noisy_fail
10/11 Test #10: noisy_fail .......................***Failed 0.00 sec
Start 11: discovery_fail
11/11 Test #11: discovery_fail ...................***Failed 0.00 sec
40% tests passed, 6 tests failed out of 10
Total Test time (real) = 1.52 sec
The following tests did not run:
5 - skipped_case (Skipped)
6 - disabled_case (Disabled)
The following tests FAILED:
4 - regex_fail (Failed)
7 - missing_case (Not Run)
8 - timeout_case (Timeout)
9 - plain_fail (Failed)
10 - noisy_fail (Failed)
11 - discovery_fail (Failed)
Unable to find executable: missing-command
Errors while running CTest
Output from these tests are in: /tmp/build/Testing/Temporary/LastTest.log
Use "--rerun-failed --output-on-failure" to re-run the failed cases verbosely.