Skip to content

end_to_end_different_root test fails on riscv64: CSV contains unexpected entries (header only expected) #106

@gyx47

Description

@gyx47

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:

  1. Clone repo and build on a riscv64 environment (Arch/riscv64 in our case).
  2. cargo test
  3. 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)

Metadata

Metadata

Assignees

Labels

No labels
No labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions