Files
wasmtime/wasmtime-environ/tests/cache_fail_invalid_path_to_config.rs
2019-09-23 12:48:36 -07:00

11 lines
361 B
Rust

use tempfile;
use wasmtime_environ::cache_init;
#[test]
fn test_cache_fail_invalid_path_to_config() {
let dir = tempfile::tempdir().expect("Can't create temporary directory");
let config_path = dir.path().join("cache-config.toml"); // doesn't exist
let errors = cache_init(true, Some(&config_path), false, None);
assert!(!errors.is_empty());
}