Index | Thread | Search

From:
Edd Barrett <edd@theunixzoo.co.uk>
Subject:
Re: [update] textproc/mdbook 0.4.51
To:
Laurent Cheylus <foxy@free.fr>
Cc:
ports <ports@openbsd.org>
Date:
Tue, 3 Jun 2025 23:35:23 +0100

Download raw body.

Thread
On Tue, Jun 03, 2025 at 10:08:31AM +0200, Laurent Cheylus wrote:
> Build and tests OK on current/amd64 with Rust 1.87.0

I have new test failures on amd64:

    preprocessor::failing_preprocessor
    preprocessor::nop_preprocessor

Can you not reproduce them?

```
$ make test
...
test preprocessor::example_doesnt_support_not_supported ... ok
test preprocessor::failing_preprocessor ... FAILED
test preprocessor::example_supports_whatever ... ok
test preprocessor::runs_preprocessors ... ok
test preprocessor::nop_preprocessor ... FAILED
test print::noindex ... ok
...
failures:

---- preprocessor::failing_preprocessor stdout ----

thread 'preprocessor::failing_preprocessor' panicked at tests/testsuite/book_test.rs:345:17:
mdbook succeeded, but expected failure
--- stdout

--- stderr
2025-06-03 23:21:54 [INFO] (mdbook::book): Book building has started
error: could not find `Cargo.toml` in `/usr/local/pobj/mdbook-0.4.51/build-amd64/target/tmp/ts/t28` or any parent directory
2025-06-03 23:21:54 [INFO] (mdbook::book): Running the html backend

stack backtrace:
   0:      0x71b0ae489be - <std::sys::backtrace::BacktraceLock::print::DisplayBacktrace as core::fmt::Display>::fmt::h70a21f8d5d87032c
   1:      0x71b0ae72f31 - core::fmt::write::h1170f66cbf8e934e
   2:      0x71b0ae371f4 - std::io::default_write_fmt::h97f71b2c7c6e85e9
   3:      0x71b0ae48807 - std::sys::backtrace::BacktraceLock::print::h713863080cddf35d
   4:      0x71b0ae55f6c - std::panicking::default_hook::{{closure}}::hf8a90e49e1261c41
   5:      0x71b0ae55e5d - std::panicking::default_hook::h29748ce9e5e1984e
   6:      0x71b0aad46e0 - test::test_main::{{closure}}::h169cf6cfe8050cef
   7:      0x71b0ae56755 - std::panicking::rust_panic_with_hook::h1d661942cac4951d
   8:      0x71b0ae48eeb - std::panicking::begin_panic_handler::{{closure}}::h59ce274325d5da52
   9:      0x71b0ae48c1d - std::sys::backtrace::__rust_end_short_backtrace::h299ec25a52240321
  10:      0x71b0ae561a1 - __rustc[aaf4a02f2f9ab86b]::rust_begin_unwind
  11:      0x71b0ae79a14 - core::panicking::panic_fmt::hbf6e88bf9b8d5b47
  12:      0x71b0aa93694 - testsuite::book_test::BookCommand::run::hbace59468974ba82
  13:      0x71b0aa902c7 - testsuite::book_test::BookTest::run::h9166c1814c3f3d58
  14:      0x71b0aa5acd0 - testsuite::preprocessor::failing_preprocessor::h3231ae6f3c8df008
  15:      0x71b0aa76c03 - core::ops::function::FnOnce::call_once::h0eadbd9c8be04dd0
  16:      0x71b0aada340 - test::__rust_begin_short_backtrace::h91a2945577bc432e
  17:      0x71b0aae5828 - test::types::RunnableTest::run::hbb3dd56f8ddc298a
  18:      0x71b0aada4e6 - test::run_test_in_process::he0c9ba31db301772
  19:      0x71b0aa9e14b - std::sys::backtrace::__rust_begin_short_backtrace::h74351606c8fdc706
  20:      0x71b0aaadbfe - core::ops::function::FnOnce::call_once{{vtable.shim}}::h6e8a5d6cf05446a8
  21:      0x71b0ae1c0ff - std::sys::pal::unix::thread::Thread::new::thread_start::h5deb7bd4fcfe2619
  22:      0x71de0ab56e2 - _rthread_start
                               at /usr/src/lib/librthread/rthread.c:96:11
  23:      0x71de261f29a - __tfork_thread
                               at /usr/src/lib/libc/arch/amd64/sys/tfork_thread.S:87:0

---- preprocessor::nop_preprocessor stdout ----

thread 'preprocessor::nop_preprocessor' panicked at tests/testsuite/book_test.rs:363:17:

␛[31m---- expected: tests/testsuite/preprocessor.rs:48:53␛[0m
␛[32m++++ actual:   stderr␛[0m
␛[2m   1␛[0m ␛[2m   1␛[0m ␛[2m|␛[0m ␛[2m[TIMESTAMP] [INFO] (mdbook::book): Book building has started
␛[0m     ␛[2m   2␛[0m ␛[32m+␛[0m ␛[32merror: could not find `Cargo.toml` in `[ROOT]` or any parent directory
␛[0m␛[2m   2␛[0m ␛[2m   3␛[0m ␛[2m|␛[0m ␛[2m[TIMESTAMP] [INFO] (mdbook::book): Running the html backend
␛[0m
␛[2mUpdate with SNAPSHOTS=overwrite␛[0m

stack backtrace:
   0:      0x71b0ae489be - <std::sys::backtrace::BacktraceLock::print::DisplayBacktrace as core::fmt::Display>::fmt::h70a21f8d5d87032c
   1:      0x71b0ae72f31 - core::fmt::write::h1170f66cbf8e934e
   2:      0x71b0ae371f4 - std::io::default_write_fmt::h97f71b2c7c6e85e9
   3:      0x71b0ae48807 - std::sys::backtrace::BacktraceLock::print::h713863080cddf35d
   4:      0x71b0ae55f6c - std::panicking::default_hook::{{closure}}::hf8a90e49e1261c41
   5:      0x71b0ae55e5d - std::panicking::default_hook::h29748ce9e5e1984e
   6:      0x71b0aad46e0 - test::test_main::{{closure}}::h169cf6cfe8050cef
   7:      0x71b0ae56755 - std::panicking::rust_panic_with_hook::h1d661942cac4951d
   8:      0x71b0ae48eeb - std::panicking::begin_panic_handler::{{closure}}::h59ce274325d5da52
   9:      0x71b0ae48c1d - std::sys::backtrace::__rust_end_short_backtrace::h299ec25a52240321
  10:      0x71b0ae561a1 - __rustc[aaf4a02f2f9ab86b]::rust_begin_unwind
  11:      0x71b0ae79a14 - core::panicking::panic_fmt::hbf6e88bf9b8d5b47
  12:      0x71b0aa93978 - testsuite::book_test::BookCommand::run::hbace59468974ba82
  13:      0x71b0aa8fd21 - testsuite::book_test::BookTest::run::h90f21c61824696cf
  14:      0x71b0aa5ac30 - testsuite::preprocessor::nop_preprocessor::hc177fa636839a40f
  15:      0x71b0aa774d3 - core::ops::function::FnOnce::call_once::hc38324648bb84a33
  16:      0x71b0aada340 - test::__rust_begin_short_backtrace::h91a2945577bc432e
  17:      0x71b0aae5828 - test::types::RunnableTest::run::hbb3dd56f8ddc298a
  18:      0x71b0aada4e6 - test::run_test_in_process::he0c9ba31db301772
  19:      0x71b0aa9e14b - std::sys::backtrace::__rust_begin_short_backtrace::h74351606c8fdc706
  20:      0x71b0aaadbfe - core::ops::function::FnOnce::call_once{{vtable.shim}}::h6e8a5d6cf05446a8
  21:      0x71b0ae1c0ff - std::sys::pal::unix::thread::Thread::new::thread_start::h5deb7bd4fcfe2619
  22:      0x71de0ab56e2 - _rthread_start
                               at /usr/src/lib/librthread/rthread.c:96:11
  23:      0x71de261f29a - __tfork_thread
                               at /usr/src/lib/libc/arch/amd64/sys/tfork_thread.S:87:0


failures:
    preprocessor::failing_preprocessor
    preprocessor::nop_preprocessor

test result: FAILED. 68 passed; 2 failed; 0 ignored; 0 measured; 0 filtered out; finished in 5.69s

error: test failed, to rerun pass `--test testsuite`
```

-- 
Best Regards
Edd Barrett

https://www.theunixzoo.co.uk