Skip to content

test_override_env failing during make check #17617

Closed
@wizeman

Description

@wizeman

Using commit 7fbbfe6 I am experiencing this failure during make check:

metrics saved to: tmp/check-stage2-T-x86_64-unknown-linux-gnu-H-x86_64-unknown-linux-gnu-std-metrics.json
failures:

---- io::process::tests::test_override_env::green stdout ----
    task 'io::process::tests::test_override_env::green' failed at 'called `Result::unwrap()` on an `Err` value: no such file or directory (no such file or directory)', /tmp/nix-build-rustc-0.12.0-pre-7fbbfe6bf.drv-0/git-export/src/libcore/result.rs:808


---- io::process::tests::test_override_env::native stdout ----
    task 'io::process::tests::test_override_env::native' failed at 'receiving on a closed channel', /tmp/nix-build-rustc-0.12.0-pre-7fbbfe6bf.drv-0/git-export/src/libsync/comm/mod.rs:837



failures:
    io::process::tests::test_override_env::green
    io::process::tests::test_override_env::native

test result: FAILED. 833 passed; 2 failed; 63 ignored; 0 measured

task '<main>' failed at 'Some tests failed', /tmp/nix-build-rustc-0.12.0-pre-7fbbfe6bf.drv-0/git-export/src/libtest/lib.rs:243
make: *** [tmp/check-stage2-T-x86_64-unknown-linux-gnu-H-x86_64-unknown-linux-gnu-std.ok] Error 101

Initially I thought it was because my OS (NixOS) did not install env in /usr/bin (in fact, /usr doesn't even exist, but env is in the PATH), but even then, that does not explain why other env tests succeed (such as test_add_to_env, which is almost exactly the same code as test_override_env).

However, if I copy/paste the code from the test into a new program and run it, it seems to work fine.

Furthermore, this exact make check failure seems to be repeatable, even after updating to a newer commit and compiling everything from scratch.

This seems quite mysterious to me... any ideas as to what the problem might be?

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-testsuiteArea: The testsuite used to check the correctness of rustcE-easyCall for participation: Easy difficulty. Experience needed to fix: Not much. Good first issue.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions