Skip to content

Test with array-in-struct fails on emscripten #41299

Closed
@TimNN

Description

@TimNN

run-pass/issue-29663.rs fails on emscripten with the following error message:

failures:

---- [run-pass] run-pass/issue-29663.rs stdout ----

error: test run failed!
status: exit code: 101
command: /tmp/emsdk_portable/node/4.1.1_32bit/bin/node /checkout/obj/build/x86_64-unknown-linux-gnu/test/run-pass/issue-29663.stage2-asmjs-unknown-emscripten.js
stdout:
------------------------------------------

------------------------------------------
stderr:
------------------------------------------
thread 'main' panicked at 'assertion failed: `(left == right)` (left: `E([0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0])`, right: `E([1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1])`)', /checkout/src/test/run-pass/issue-29663.rs:61
note: Run with `RUST_BACKTRACE=1` for a backtrace.

------------------------------------------

thread '[run-pass] run-pass/issue-29663.rs' panicked at 'explicit panic', /checkout/src/tools/compiletest/src/runtest.rs:2621
note: Run with `RUST_BACKTRACE=1` for a backtrace.


failures:
    [run-pass] run-pass/issue-29663.rs

test result: FAILED. 2513 passed; 1 failed; 137 ignored; 0 measured

Thus the test is currently ignored on emscripten.

Note: it may be that the failure occurs only on when the test is compiled with optimizations.

Note: this happens when using LLVM 4.0 (this issue was opened now to get an issue number to reference).

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-LLVMArea: Code generation parts specific to LLVM. Both correctness bugs and optimization-related issues.A-testsuiteArea: The testsuite used to check the correctness of rustcC-bugCategory: This is a bug.O-asmjsTarget: asm.js - http://asmjs.org/O-emscriptenTarget: 50% off wasm32-unknown-musl. the savings come out of stdio.h, but hey, you get SDL!

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions