diff options
author | Nadrieril | 2019-05-03 23:33:23 +0200 |
---|---|---|
committer | Nadrieril | 2019-05-03 23:33:23 +0200 |
commit | ca4e2b39c838cde6da835470699579e8eddc1535 (patch) | |
tree | cd205d59e7d2bfa9e0067a816d5109f0c190bd6d /dhall | |
parent | 1337310f0938294bb2c8da9dfdf3d30200c6b9f2 (diff) |
No need for extra stack in tests anymore
Diffstat (limited to 'dhall')
-rw-r--r-- | dhall/Cargo.toml | 1 | ||||
-rw-r--r-- | dhall/src/tests.rs | 18 |
2 files changed, 6 insertions, 13 deletions
diff --git a/dhall/Cargo.toml b/dhall/Cargo.toml index de2ab7c..637d511 100644 --- a/dhall/Cargo.toml +++ b/dhall/Cargo.toml @@ -18,7 +18,6 @@ dhall_generator = { path = "../dhall_generator" } [dev-dependencies] pretty_assertions = "0.6.1" -stacker = "0.1.5" [build-dependencies] walkdir = "2" diff --git a/dhall/src/tests.rs b/dhall/src/tests.rs index ecd6e43..ce74606 100644 --- a/dhall/src/tests.rs +++ b/dhall/src/tests.rs @@ -24,11 +24,8 @@ macro_rules! make_spec_test { #[allow(non_snake_case)] fn $name() { use crate::tests::*; - match run_test_with_bigger_stack( - $path, - Feature::$type, - Status::$status, - ) { + match run_test_stringy_error($path, Feature::$type, Status::$status) + { Ok(_) => {} Err(s) => panic!(s), } @@ -64,18 +61,15 @@ fn parse_binary_file_str<'i>(file_path: &str) -> Result<Parsed> { Parsed::parse_binary_file(&PathBuf::from(file_path)) } -pub fn run_test_with_bigger_stack( +pub fn run_test_stringy_error( base_path: &str, feature: Feature, status: Status, ) -> std::result::Result<(), String> { - // Many tests stack overflow in debug mode let base_path: String = base_path.to_string(); - stacker::grow(6 * 1024 * 1024, move || { - run_test(&base_path, feature, status) - .map_err(|e| e.to_string()) - .map(|_| ()) - }) + run_test(&base_path, feature, status) + .map_err(|e| e.to_string()) + .map(|_| ()) } pub fn run_test( |