Skip to content

Tests are broken #64

Closed
Closed
@andy128k

Description

@andy128k

Running cargo test gives

     Running tests/abi.rs (target/debug/deps/abi-46b59376a247bea1)

running 2 tests
In file included from tests/layout.c:5:
tests/manual.h:3:10: fatal error: gio/gdesktopappinfo.h: No such file or directory
    3 | #include <gio/gdesktopappinfo.h>
      |          ^~~~~~~~~~~~~~~~~~~~~~~
compilation terminated.
In file included from tests/constant.c:5:
tests/manual.h:3:10: fatal error: gio/gdesktopappinfo.h: No such file or directory
    3 | #include <gio/gdesktopappinfo.h>
      |          ^~~~~~~~~~~~~~~~~~~~~~~
compilation terminated.
test cross_validate_layout_with_c ... FAILED
test cross_validate_constants_with_c ... FAILED

failures:

---- cross_validate_layout_with_c stdout ----
thread 'cross_validate_layout_with_c' panicked at 'called `Result::unwrap()` on an `Err` value: "compilation command \"cc\" \"-Wno-deprecated-declarations\" \"-std=c11\" \"-D__USE_MINGW_ANSI_STDIO\" \"-pthread\" \"-I/usr/include/libmount\" \"-I/usr/include/blkid\" \"-I/usr/include/glib-2.0\" \"-I/usr/lib/x86_64-linux-gnu/glib-2.0/include\" \"tests/layout.c\" \"-o\" \"/tmp/abiqhL4A1/layout\" failed, exit code: 1"', gio/sys/tests/abi.rs:156:37
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace

---- cross_validate_constants_with_c stdout ----
thread 'cross_validate_constants_with_c' panicked at 'called `Result::unwrap()` on an `Err` value: "compilation command \"cc\" \"-Wno-deprecated-declarations\" \"-std=c11\" \"-D__USE_MINGW_ANSI_STDIO\" \"-pthread\" \"-I/usr/include/libmount\" \"-I/usr/include/blkid\" \"-I/usr/include/glib-2.0\" \"-I/usr/lib/x86_64-linux-gnu/glib-2.0/include\" \"tests/constant.c\" \"-o\" \"/tmp/abiGg0Baw/constant\" failed, exit code: 1"', gio/sys/tests/abi.rs:116:39


failures:
    cross_validate_constants_with_c
    cross_validate_layout_with_c

test result: FAILED. 0 passed; 2 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.01s

error: test failed, to rerun pass '-p gio-sys --test abi'

Adding "gio-unix-2.0" to a list of packages in gio/sys/tests/abi.rs doesn't help. There are even more errors there.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingcihelp wantedExtra attention is needed

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions