-
Notifications
You must be signed in to change notification settings - Fork 17
end_to_end_different_root test fails on riscv64: CSV contains unexpected entries (header only expected) #106
Description
Describe the bug
The end_to_end_different_root test expects the generated CSV file to contain only the header row (source,line,column,target), but on our riscv64 build the CSV contains three extra lines from benches/benchmark/markdown/ignore_me.md. The test panics on assert_eq!(lines.len(), 1) (left = 4, right = 1).
thread 'end_to_end_different_root' panicked at tests/end_to_end.rs:65:9:
assertion `left == right` failed
left: 4
right: 1
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
To Reproduce
Steps to reproduce the behavior:
- Clone repo and build on a riscv64 environment (Arch/riscv64 in our case).
cargo test- See error
markuplinkchecker-1.0.0-1-riscv64-check.log
I add println!("CSV file content:\n{}", content); to end_to_end.rs
Expected behavior
When root_dir is set to the test directory benches/different_root, the generated CSV file should contain only the header row (no additional entries), because that test fixture should produce no CSV-recorded broken links.
source,line,column,target
actual behavior
source,line,column,target
benches/benchmark/markdown/ignore_me.md,1,1,broken_Link
benches/benchmark/markdown/ignore_me.md,2,1,broken_Link
benches/benchmark/markdown/ignore_me.md,3,1,broken_Link
This causes the assertion assert_eq!(lines.len(), 1) to fail (4 != 1), test panics and CI fails.
Desktop
- Platform: riscv64 (Arch Linux riscv64 build environment)
- Version mlc (v1.0.0)