Skip to content

Strange indentation in libtest output #104092

Closed
@RalfJung

Description

@RalfJung

libtest output recently started indenting some but not all test results:

$./x.py test library/alloc --stage 0 --test-args "--format pretty" --no-doc
running 373 tests
test raw_vec::tests::allocator_param ... ok
test raw_vec::tests::reserve_does_not_overallocate ... ok
test raw_vec::tests::zst ... ok
test alloc::tests::allocate_zeroed ... ignored
test raw_vec::tests::zst_reserve_panic - should panic ... ok
test raw_vec::tests::zst_reserve_exact_panic - should panic ... ok
test alloc::tests::alloc_owned_small                         ... ok   <!----- notice this one!
test collections::binary_heap::tests::test_iter_rev_cloned_collect ... ok
[...]
test collections::linked_list::tests::test_drop ... ok
test collections::linked_list::tests::test_drop_panic ... ok
test collections::vec_deque::tests::bench_push_front_100     ... ok  <!---- and these!
test collections::vec_deque::tests::bench_push_back_100      ... ok
test collections::vec_deque::tests::bench_pop_back_100       ... ok
test collections::vec_deque::tests::bench_pop_front_100      ... ok
test collections::vec_deque::tests::test_swap_front_back_remove ... ok
test collections::vec_deque::tests::test_insert ... ok
test collections::vec_deque::tests::test_get ... ok
test collections::vec_deque::tests::test_get_mut ... ok
test collections::vec_deque::tests::bench_retain_whole_10000 ... ok

Seems like benchmarks are indented but regular tests are not.

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-libtestArea: `#[test]` / the `test` libraryC-bugCategory: This is a bug.E-help-wantedCall for participation: Help is requested to fix this issue.P-lowLow priorityT-libsRelevant to the library team, which will review and decide on the PR/issue.regression-from-stable-to-stablePerformance or correctness regression from one stable version to another.

    Type

    No type

    Projects

    Status

    Done

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions