[Bug 6506] New: testsuite failures on alpine linux x86 (32bit)

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

[Bug 6506] New: testsuite failures on alpine linux x86 (32bit)

mercurial-bugs-2
https://bz.mercurial-scm.org/show_bug.cgi?id=6506

            Bug ID: 6506
           Summary: testsuite failures on alpine linux x86 (32bit)
           Product: Mercurial
           Version: 5.7
          Hardware: PC
                OS: Linux
            Status: UNCONFIRMED
          Severity: bug
          Priority: wish
         Component: Mercurial
          Assignee: [hidden email]
          Reporter: [hidden email]
                CC: [hidden email]
    Python Version: ---

Some of the tests fails on 32 bit alpine linux, which uses musl libc, with rust
1.51.0.


```
if command -v cargo >/dev/null 2>&1; then \
        make rust-tests; \
fi
make[1]: Entering directory
'/home/ncopa/aports/community/mercurial/src/mercurial-5.7'
cd /home/ncopa/aports/community/mercurial/src/mercurial-5.7/rust/hg-cpython \
        && cargo test --quiet --all \
                --no-default-features --features "python3-bin "
warning: panic message is not a string literal
   --> hg-core/src/copy_tracing.rs:348:42
    |
348 |         assert!(token < self.path.len(), format!("Unknown token: {}",
token));
    |                                        
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    |
    = note: `#[warn(non_fmt_panic)]` on by default
    = note: this is no longer accepted in Rust 2021
    = note: this warning originates in a macro (in Nightly builds, run with -Z
macro-backtrace for more info)

warning: 1 warning emitted

warning: panic message is not a string literal
   --> hg-core/src/copy_tracing.rs:348:42
    |
348 |         assert!(token < self.path.len(), format!("Unknown token: {}",
token));
    |                                        
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    |
    = note: `#[warn(non_fmt_panic)]` on by default
    = note: this is no longer accepted in Rust 2021
    = note: this warning originates in a macro (in Nightly builds, run with -Z
macro-backtrace for more info)

warning: panic message is not a string literal
   --> hg-core/src/revlog/node.rs:399:27
    |
399 |             err => panic!(format!("Should have been TooLong, got {:?}",
err)),
    |                          
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    |
    = note: this is no longer accepted in Rust 2021
    = note: this warning originates in a macro (in Nightly builds, run with -Z
macro-backtrace for more info)

warning: 2 warnings emitted

warning: panic message is not a string literal
   --> hg-core/tests/test_missing_ancestors.rs:159:16
    |
159 |           panic!(format!(
    |  ________________^
160 | |             "Equality assertion failed (left != right)
161 | |                 left={:?}
162 | |                 right={:?}
...   |
173 | |             self.random_seed,
174 | |         ));
    | |_________^
    |
    = note: `#[warn(non_fmt_panic)]` on by default
    = note: this is no longer accepted in Rust 2021
    = note: this warning originates in a macro (in Nightly builds, run with -Z
macro-backtrace for more info)

warning: panic message is not a string literal
   --> hg-core/tests/test_missing_ancestors.rs:234:16
    |
234 |         panic!(err_msg);
    |                ^^^^^^^
    |
    = note: this is no longer accepted in Rust 2021
help: add a "{}" format string to Display the message
    |
234 |         panic!("{}", err_msg);
    |                ^^^^^
help: or use std::panic::panic_any instead
    |
234 |         std::panic::panic_any(err_msg);
    |         ^^^^^^^^^^^^^^^^^^^^^^

warning: 2 warnings emitted


running 110 tests
....................................................................................................
100/110
.....FFFF.
failures:

---- revlog::index::tests::test_offset stdout ----
thread 'revlog::index::tests::test_offset' panicked at 'assertion failed:
`(left == right)`
  left: `0`,
 right: `1`', hg-core/src/revlog/index.rs:353:9

---- revlog::index::tests::test_uncompressed_len stdout ----
thread 'revlog::index::tests::test_uncompressed_len' panicked at 'range end
index 16 out of range for slice of length 8',
hg-core/src/revlog/index.rs:180:30

---- revlog::index::tests::test_base_revision stdout ----
thread 'revlog::index::tests::test_base_revision' panicked at 'range start
index 16 out of range for slice of length 8',
hg-core/src/revlog/index.rs:188:30
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace

---- revlog::index::tests::test_compressed_len stdout ----
thread 'revlog::index::tests::test_compressed_len' panicked at 'range end index
12 out of range for slice of length 8', hg-core/src/revlog/index.rs:175:30


failures:
    revlog::index::tests::test_base_revision
    revlog::index::tests::test_compressed_len
    revlog::index::tests::test_offset
    revlog::index::tests::test_uncompressed_len

test result: FAILED. 106 passed; 4 failed; 0 ignored; 0 measured; 0 filtered
out; finished in 0.02s

error: test failed, to rerun pass '-p hg-core --lib'
make[1]: *** [Makefile:145: rust-tests] Error 101
make[1]: Leaving directory
'/home/ncopa/aports/community/mercurial/src/mercurial-5.7'
make: *** [Makefile:127: tests] Error 2
```

--
You are receiving this mail because:
You are on the CC list for the bug.
_______________________________________________
Mercurial-devel mailing list
[hidden email]
https://www.mercurial-scm.org/mailman/listinfo/mercurial-devel