Skip to content

--enable-debug enables debugging for src/test, causing rpass/conditional-debug-macro-off to fail. #7898

Closed
@huonw

Description

@huonw
error: test run failed!
command: x86_64-unknown-linux-gnu/test/run-pass/conditional-debug-macro-off.stage2-x86_64-unknown-linux-gnu 
stdout:
------------------------------------------

------------------------------------------
stderr:
------------------------------------------
rust: task failed at 'explicit failure', /home/huon/rust/src/test/run-pass/conditional-debug-macro-off.rs:16
rust: domain main @0xc6d230 root task failed

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

rust: task failed at 'explicit failure', /home/huon/rust/src/compiletest/runtest.rs:723
test [run-pass] run-pass/conditional-debug-macro-off.rs ... FAILED

All of the old debug! statements have been converted to info!, so tests should be able to choose --cfg debug or not themselves, as the info! statements are unconditionally in the output.

cc @graydon

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-testsuiteArea: The testsuite used to check the correctness of rustc

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions