Tests for cache system

This commit is contained in:
Artur Jamro
2019-07-29 16:43:48 -07:00
committed by Dan Gohman
parent 697fa59b55
commit c3215f4f1b
7 changed files with 355 additions and 4 deletions

View File

@@ -0,0 +1,10 @@
use tempfile;
use wasmtime_environ::cache_conf;
#[test]
#[should_panic]
fn test_fail_calling_init_twice() {
let dir = tempfile::tempdir().expect("Can't create temporary directory");
cache_conf::init(true, Some(dir.path()));
cache_conf::init(true, Some(dir.path()));
}