Skip to content

Test failure on big-endian arches #1421

@werdahias

Description

@werdahias

I got texlab accepted into Debian yesterday, and its testsuite fails one test on big-endian arches:

test workspace::tests::test_filter_type_math ... ok
test workspace::tests::test_filter_type_section ... ok
test workspace::sort::tests::test_no_cycles ... FAILED

failures:

---- workspace::sort::tests::test_no_cycles stdout ----

thread 'workspace::sort::tests::test_no_cycles' panicked at crates/symbols/src/workspace/sort.rs:80:9:
assertion `left == right` failed
  left: 1
 right: 0
stack backtrace:
   0: rust_begin_unwind
             at /usr/src/rustc-1.85.0/library/std/src/panicking.rs:692:5
   1: core::panicking::panic_fmt
             at /usr/src/rustc-1.85.0/library/core/src/panicking.rs:75:14
   2: core::panicking::assert_failed_inner
             at /usr/src/rustc-1.85.0/library/core/src/panicking.rs:409:17
   3: core::panicking::assert_failed
             at /usr/src/rustc-1.85.0/library/core/src/panicking.rs:364:5
   4: symbols::workspace::sort::tests::test_no_cycles
             at /usr/share/cargo/registry/texlab-5.22.1/crates/symbols/src/workspace/sort.rs:80:9
   5: symbols::workspace::sort::tests::test_no_cycles::{{closure}}
             at /usr/share/cargo/registry/texlab-5.22.1/crates/symbols/src/workspace/sort.rs:48:24
   6: core::ops::function::FnOnce::call_once
             at /usr/src/rustc-1.85.0/library/core/src/ops/function.rs:250:5
   7: core::ops::function::FnOnce::call_once
             at /usr/src/rustc-1.85.0/library/core/src/ops/function.rs:250:5
note: Some details are omitted, run with `RUST_BACKTRACE=full` for a verbose backtrace.


failures:
    workspace::sort::tests::test_no_cycles

test result: FAILED. 17 passed; 1 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.06s

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions