autocfg 0.1.7

Automatic cfg for Rust compiler features
Documentation
extern crate autocfg;

/// Tests that autocfg uses the RUSTFLAGS environment variable when running
/// rustc.
#[test]
fn test_with_sysroot() {
    std::env::set_var("RUSTFLAGS", "-L target/debug/deps -L target/debug");
    std::env::set_var("OUT_DIR", "target");
    // Ensure HOST != TARGET.
    std::env::set_var("HOST", "lol");
    let ac = autocfg::AutoCfg::new().unwrap();
    assert!(ac.probe_sysroot_crate("autocfg"));
}