20 lines
533 B
Rust
20 lines
533 B
Rust
use super::*;
|
|
|
|
#[test]
|
|
fn secret_and_crypto_execute_known_vectors_and_never_echo_sensitive_errors() {
|
|
for profile in [Profile::Dev, Profile::Release] {
|
|
let binary = build(
|
|
"crypto",
|
|
include_str!("crypto.dever"),
|
|
Some(include_str!("crypto.rs.txt")),
|
|
profile,
|
|
);
|
|
let output = Command::new(binary).output().unwrap();
|
|
assert!(
|
|
output.status.success(),
|
|
"{}",
|
|
String::from_utf8_lossy(&output.stderr)
|
|
);
|
|
}
|
|
}
|