Hi Laurent,
I had a look at the test and thought it wasn't worth the effort to patch a fix
in...
https://github.com/bensadeh/tailspin/blob/main/tests/integration_tests.rs
cheers,
Volker
On 2024-08-20 15:55, Laurent Cheylus wrote:
> Hi Volker,
>
> On Mon, 19 Aug 2024 17:43:33 +0200, Volker Schlecht wrote:
>
> > Attached is a port for tailspin (https://github.com/bensadeh/tailspin/)
> > which is a fancy log highlighter written in rust... what's not to like
> > about a 5.4MB replacement for tail(1) with pretty colours? :-D
>
> I have also a port for sysutils/tailspin in the OpenBSD-WIP GH repository => https://github.com/jasperla/openbsd-wip/tree/master/sysutils/tailspin
>
> My port is very similar to yours.
>
> Build of your port OK on current/amd64 with Rust 1.80.1
> But I have some errors during tests (make test):
>
> $ make test
> (...)
> Finished `dev` profile [unoptimized + debuginfo] target(s) in 0.26s
> test test_binary_with_various_inputs ... FAILED
>
> failures:
>
> ---- test_binary_with_various_inputs stdout ----
> thread 'test_binary_with_various_inputs' panicked at tests/utils.rs:19:10:
> Failed to spawn child process: Os { code: 2, kind: NotFound, message: "No such
file or directory" }
> stack backtrace:
> 0: 0x6f1d215273f - <std::sys_common::backtrace::_print::DisplayBacktrace
as core::fmt::Display>::fmt::h003f617bf41e8e12
> 1: 0x6f1d2166491 - core::fmt::write::h0b673777d38cb7ef
> 2: 0x6f1d2123b7e - std::io::Write::write_fmt::h2b492f3c8cfac5a4
> 3: 0x6f1d2152532 - std::sys_common::backtrace::print::h656a1892a0d13a70
> 4: 0x6f1d214f82b -
std::panicking::default_hook::{{closure}}::h390ad4430f1f2c6f
> 5: 0x6f1d214f501 - std::panicking::default_hook::h9ef12f3e86290e57
> 6: 0x6f1d20d122e - test::test_main::{{closure}}::he1ca635bee2804e2
> 7: 0x6f1d2150963 -
std::panicking::rust_panic_with_hook::h94067fc4e0d42581
> 8: 0x6f1d2152cf7 -
std::panicking::begin_panic_handler::{{closure}}::he9bfad36bc20cb4e
> 9: 0x6f1d215296d -
std::sys_common::backtrace::__rust_end_short_backtrace::hf864da8d1937da0a
> 10: 0x6f1d21504db - rust_begin_unwind
> 11: 0x6f1d216c887 - core::panicking::panic_fmt::h844cffda784e1ad8
> 12: 0x6f1d216ff6a - core::result::unwrap_failed::h21b82553f233c9e7
> 13: 0x6f1d20ced8b -
integration_tests::utils::run_binary_with_input::he69cfd99180b7613
> 14: 0x6f1d20cdf92 -
core::ops::function::FnOnce::call_once::h4a3e9690515154f5
> 15: 0x6f1d20d6ee7 -
test::__rust_begin_short_backtrace::h6077891365921113
> 16: 0x6f1d20fab28 - test::types::RunnableTest::run::h7a26c4787ad0d4e8
> 17: 0x6f1d20d7144 - test::run_test_in_process::h8727f5a3217b2e98
> 18: 0x6f1d21053e2 -
std::sys_common::backtrace::__rust_begin_short_backtrace::hf53fdda07f39f7f9
> 19: 0x6f1d20ea869 -
core::ops::function::FnOnce::call_once{{vtable.shim}}::heb826caefe5ab218
> 20: 0x6f1d21493bf -
std::sys::pal::unix::thread::Thread::new::thread_start::h23c997f38e52333a
> 21: 0x6f405479462 - _rthread_start
> at /usr/src/lib/librthread/rthread.c:96:11
> 22: 0x6f3e0f804ba - __tfork_thread
> at
/usr/src/lib/libc/arch/amd64/sys/tfork_thread.S:87
>
>
> failures:
> test_binary_with_various_inputs
>
> test result: FAILED. 0 passed; 1 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.40s
>
> Could you fix it please?
>
> Laurent
>
----- End forwarded message -----