mirror of
https://github.com/storytold/lightcraft.git
synced 2026-10-31 21:48:53 -06:00
Integration: #3006 use binary() in the non-finite --set test
This commit is contained in:
@@ -223,7 +223,7 @@ fn render_subcommand() {
|
||||
assert!(String::from_utf8_lossy(&o.stderr).contains("unknown control"));
|
||||
// Values that parse as f64 but are not finite fail cleanly too.
|
||||
for bad in ["light.exposure=inf", "light.exposure=-inf", "light.exposure=NaN", "light.exposure=1e999"] {
|
||||
let o = Command::new(BIN).args(["render", input.to_str().unwrap(), "-o", out.to_str().unwrap(), "--set", bad]).output().unwrap();
|
||||
let o = Command::new(binary()).args(["render", input.to_str().unwrap(), "-o", out.to_str().unwrap(), "--set", bad]).output().unwrap();
|
||||
assert!(!o.status.success(), "{bad} must be refused");
|
||||
assert!(String::from_utf8_lossy(&o.stderr).contains("not a finite number"), "{bad}");
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user