fallbackswitch: test_manual_switch_not_live / live sometimes fails after rewrite
Running tests/fallbackswitch.rs (target/debug/deps/fallbackswitch-501f06b32591aabc)
running 17 tests
test test_no_drops_but_no_fallback_frames_live ... ok
test test_short_drop_live ... ok
test test_initial_timeout_live ... ok
test test_immediate_fallback_not_live ... ok
test test_no_fallback_no_drops ... ok
test test_immediate_fallback_live ... ok
test test_no_drops_live ... ok
test test_manual_switch_not_live ... FAILED
test test_initial_timeout_not_live ... ok
test test_no_drops_but_no_fallback_frames_not_live ... ok
test test_long_drop_and_eos_not_live ... ok
test test_no_drops_not_live ... ok
test test_long_drop_and_eos_live ... ok
test test_manual_switch_live ... ok
test test_short_drop_not_live ... ok
test test_long_drop_and_recover_not_live ... ok
test test_long_drop_and_recover_live ... ok
failures:
---- test_manual_switch_not_live stdout ----
thread 'test_manual_switch_not_live' panicked at 'assertion failed: `(left == right)`
left: `Some(0:00:01.000000000)`,
right: `Some(0:00:02.000000000)`', utils/fallbackswitch/tests/fallbackswitch.rs:475:5
stack backtrace:
0: 0x558f9a1673bc - std::backtrace_rs::backtrace::libunwind::trace::hf6a6dfd7da937cb0
at /rustc/f1edd0429582dd29cccacaf50fd134b05593bd9c/library/std/src/../../backtrace/src/backtrace/libunwind.rs:90:5
1: 0x558f9a1673bc - std::backtrace_rs::backtrace::trace_unsynchronized::hc596a19e4891f7f3
at /rustc/f1edd0429582dd29cccacaf50fd134b05593bd9c/library/std/src/../../backtrace/src/backtrace/mod.rs:66:5
2: 0x558f9a1673bc - std::sys_common::backtrace::_print_fmt::hb16700db31584325
at /rustc/f1edd0429582dd29cccacaf50fd134b05593bd9c/library/std/src/sys_common/backtrace.rs:67:5
3: 0x558f9a1673bc - <std::sys_common::backtrace::_print::DisplayBacktrace as core::fmt::Display>::fmt::h231c4190cfa75162
at /rustc/f1edd0429582dd29cccacaf50fd134b05593bd9c/library/std/src/sys_common/backtrace.rs:46:22
4: 0x558f9a18a42c - core::fmt::write::h2a1462b5f8eea807
at /rustc/f1edd0429582dd29cccacaf50fd134b05593bd9c/library/core/src/fmt/mod.rs:1163:17
5: 0x558f9a1633a5 - std::io::Write::write_fmt::h54b98b921313820f
at /rustc/f1edd0429582dd29cccacaf50fd134b05593bd9c/library/std/src/io/mod.rs:1696:15
6: 0x558f9a169080 - std::sys_common::backtrace::_print::hcc197d4bebf2b369
at /rustc/f1edd0429582dd29cccacaf50fd134b05593bd9c/library/std/src/sys_common/backtrace.rs:49:5
7: 0x558f9a169080 - std::sys_common::backtrace::print::h335a66af06738c7c
at /rustc/f1edd0429582dd29cccacaf50fd134b05593bd9c/library/std/src/sys_common/backtrace.rs:36:9
8: 0x558f9a169080 - std::panicking::default_hook::{{closure}}::h6fac9ac9c8b79e52
at /rustc/f1edd0429582dd29cccacaf50fd134b05593bd9c/library/std/src/panicking.rs:210:50
9: 0x558f9a168c70 - std::panicking::default_hook::h341c1030c6a1161b
at /rustc/f1edd0429582dd29cccacaf50fd134b05593bd9c/library/std/src/panicking.rs:224:9
10: 0x558f9a169734 - std::panicking::rust_panic_with_hook::h50680ff4b44510c6
at /rustc/f1edd0429582dd29cccacaf50fd134b05593bd9c/library/std/src/panicking.rs:624:17
11: 0x558f9a169210 - std::panicking::begin_panic_handler::{{closure}}::h9371c0fbb1e8465a
at /rustc/f1edd0429582dd29cccacaf50fd134b05593bd9c/library/std/src/panicking.rs:521:13
12: 0x558f9a167864 - std::sys_common::backtrace::__rust_end_short_backtrace::h9b3efa22a5768c0f
at /rustc/f1edd0429582dd29cccacaf50fd134b05593bd9c/library/std/src/sys_common/backtrace.rs:139:18
13: 0x558f9a169179 - rust_begin_unwind
at /rustc/f1edd0429582dd29cccacaf50fd134b05593bd9c/library/std/src/panicking.rs:517:5
14: 0x558f9a0733a1 - core::panicking::panic_fmt::h23b9203e89cc61cf
at /rustc/f1edd0429582dd29cccacaf50fd134b05593bd9c/library/core/src/panicking.rs:100:14
15: 0x558f9a188fd8 - core::panicking::assert_failed_inner::h267919ed503c570e
16: 0x558f9a06d0cb - core::panicking::assert_failed::h85c22da7c1c8a16c
at /rustc/f1edd0429582dd29cccacaf50fd134b05593bd9c/library/core/src/panicking.rs:138:5
17: 0x558f9a07c6bc - fallbackswitch::test_manual_switch::h1ac8e7564efe3eb3
at /builds/slomo/gst-plugins-rs/utils/fallbackswitch/tests/fallbackswitch.rs:475:5
18: 0x558f9a07def8 - fallbackswitch::test_manual_switch_not_live::h82cfcc729586acec
at /builds/slomo/gst-plugins-rs/utils/fallbackswitch/tests/fallbackswitch.rs:443:5
19: 0x558f9a07dee6 - fallbackswitch::test_manual_switch_not_live::{{closure}}::h6c4f09ad4626bfbd
at /builds/slomo/gst-plugins-rs/utils/fallbackswitch/tests/fallbackswitch.rs:442:1
20: 0x558f9a079616 - core::ops::function::FnOnce::call_once::hd272418f1b0faaf6
at /rustc/f1edd0429582dd29cccacaf50fd134b05593bd9c/library/core/src/ops/function.rs:227:5
21: 0x558f9a119be3 - core::ops::function::FnOnce::call_once::h83cc023b85256d97
at /rustc/f1edd0429582dd29cccacaf50fd134b05593bd9c/library/core/src/ops/function.rs:227:5
22: 0x558f9a119be3 - test::__rust_begin_short_backtrace::h7330e4e8b0549e26
at /rustc/f1edd0429582dd29cccacaf50fd134b05593bd9c/library/test/src/lib.rs:585:5
23: 0x558f9a118668 - <alloc::boxed::Box<F,A> as core::ops::function::FnOnce<Args>>::call_once::h6b77566b8f386abb
at /rustc/f1edd0429582dd29cccacaf50fd134b05593bd9c/library/alloc/src/boxed.rs:1691:9
24: 0x558f9a118668 - <core::panic::unwind_safe::AssertUnwindSafe<F> as core::ops::function::FnOnce<()>>::call_once::h2ad5de64df41b71c
at /rustc/f1edd0429582dd29cccacaf50fd134b05593bd9c/library/core/src/panic/unwind_safe.rs:271:9
25: 0x558f9a118668 - std::panicking::try::do_call::he67b1e56b423a618
at /rustc/f1edd0429582dd29cccacaf50fd134b05593bd9c/library/std/src/panicking.rs:403:40
26: 0x558f9a118668 - std::panicking::try::ha9224adcdd41a723
at /rustc/f1edd0429582dd29cccacaf50fd134b05593bd9c/library/std/src/panicking.rs:367:19
27: 0x558f9a118668 - std::panic::catch_unwind::h9111b58ae0b27828
at /rustc/f1edd0429582dd29cccacaf50fd134b05593bd9c/library/std/src/panic.rs:133:14
28: 0x558f9a118668 - test::run_test_in_process::h15b6b7d5919893aa
at /rustc/f1edd0429582dd29cccacaf50fd134b05593bd9c/library/test/src/lib.rs:608:18
29: 0x558f9a118668 - test::run_test::run_test_inner::{{closure}}::hf4315a4713f43c7c
at /rustc/f1edd0429582dd29cccacaf50fd134b05593bd9c/library/test/src/lib.rs:500:39
30: 0x558f9a0e484e - test::run_test::run_test_inner::{{closure}}::he5ee4b72e81a03c9
at /rustc/f1edd0429582dd29cccacaf50fd134b05593bd9c/library/test/src/lib.rs:527:37
31: 0x558f9a0e484e - std::sys_common::backtrace::__rust_begin_short_backtrace::h95ee850adb4781e8
at /rustc/f1edd0429582dd29cccacaf50fd134b05593bd9c/library/std/src/sys_common/backtrace.rs:123:18
32: 0x558f9a0e9648 - std::thread::Builder::spawn_unchecked::{{closure}}::{{closure}}::h021e24a415db235d
at /rustc/f1edd0429582dd29cccacaf50fd134b05593bd9c/library/std/src/thread/mod.rs:483:17
33: 0x558f9a0e9648 - <core::panic::unwind_safe::AssertUnwindSafe<F> as core::ops::function::FnOnce<()>>::call_once::haeadffca71b0b3db
at /rustc/f1edd0429582dd29cccacaf50fd134b05593bd9c/library/core/src/panic/unwind_safe.rs:271:9
34: 0x558f9a0e9648 - std::panicking::try::do_call::hccb88781ab950fde
at /rustc/f1edd0429582dd29cccacaf50fd134b05593bd9c/library/std/src/panicking.rs:403:40
35: 0x558f9a0e9648 - std::panicking::try::h5f12d1df9398dffe
at /rustc/f1edd0429582dd29cccacaf50fd134b05593bd9c/library/std/src/panicking.rs:367:19
36: 0x558f9a0e9648 - std::panic::catch_unwind::h613f52076bf29f32
at /rustc/f1edd0429582dd29cccacaf50fd134b05593bd9c/library/std/src/panic.rs:133:14
37: 0x558f9a0e9648 - std::thread::Builder::spawn_unchecked::{{closure}}::h0c75f5a4c2ca7c3c
at /rustc/f1edd0429582dd29cccacaf50fd134b05593bd9c/library/std/src/thread/mod.rs:482:30
38: 0x558f9a0e9648 - core::ops::function::FnOnce::call_once{{vtable.shim}}::h430a5db0c11b32f8
at /rustc/f1edd0429582dd29cccacaf50fd134b05593bd9c/library/core/src/ops/function.rs:227:5
39: 0x558f9a16e083 - <alloc::boxed::Box<F,A> as core::ops::function::FnOnce<Args>>::call_once::h7bd677a5dc988be6
at /rustc/f1edd0429582dd29cccacaf50fd134b05593bd9c/library/alloc/src/boxed.rs:1691:9
40: 0x558f9a16e083 - <alloc::boxed::Box<F,A> as core::ops::function::FnOnce<Args>>::call_once::h7b1c1ba11c4db785
at /rustc/f1edd0429582dd29cccacaf50fd134b05593bd9c/library/alloc/src/boxed.rs:1691:9
41: 0x558f9a16e083 - std::sys::unix::thread::Thread::new::thread_start::h9c58c0d12d84e854
at /rustc/f1edd0429582dd29cccacaf50fd134b05593bd9c/library/std/src/sys/unix/thread.rs:106:17
42: 0x7f4529ec6ea7 - start_thread
43: 0x7f4529caadef - clone
44: 0x0 - <unknown>
failures:
test_manual_switch_not_live
Edited by Sebastian Dröge