Refactor cache configuration

This commit is contained in:
Artur Jamro
2019-09-06 15:09:05 -07:00
committed by Dan Gohman
parent c3a519d3a1
commit 1c22211d57
14 changed files with 747 additions and 592 deletions

View File

@@ -1,6 +1,6 @@
use std::fs;
use tempfile;
use wasmtime_environ::cache_config;
use wasmtime_environ::cache_init;
#[test]
fn test_cache_fail_invalid_config() {
@@ -18,6 +18,6 @@ fn test_cache_fail_invalid_config() {
);
fs::write(&config_path, config_content).expect("Failed to write test config file");
let errors = cache_config::init(true, Some(&config_path), false, None);
let errors = cache_init(true, Some(&config_path), false, None);
assert!(!errors.is_empty());
}