about summary refs log tree commit diff
path: root/tests/rustdoc/doctest/doctest-runtool.rs
blob: c4fb02e5228cc5816f2390b234c09664149ceeb4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
// Tests that the --test-runtool argument works.

//@ ignore-cross-compile
//@ aux-bin: doctest-runtool.rs
//@ compile-flags: --test
//@ compile-flags: --test-runtool=auxiliary/bin/doctest-runtool
//@ compile-flags: --test-runtool-arg=arg1 --test-runtool-arg
//@ compile-flags: 'arg2 with space'

/// ```
/// assert_eq!(std::env::var("DOCTEST_RUNTOOL_CHECK"), Ok("xyz".to_string()));
/// ```
pub fn main() {}