refactor: unsafe, CStr and libc moved out

This commit is contained in:
dignifiedquire
2019-12-02 15:29:47 +01:00
parent e6f737be9d
commit 25ab59eb93
17 changed files with 398 additions and 459 deletions

View File

@@ -14,7 +14,7 @@ use tempfile::{tempdir, TempDir};
/* some data used for testing
******************************************************************************/
unsafe fn stress_functions(context: &Context) {
fn stress_functions(context: &Context) {
let res = context.get_config(config::Config::SysConfigKeys).unwrap();
assert!(!res.contains(" probably_never_a_key "));
@@ -224,10 +224,8 @@ fn create_test_context() -> TestContext {
#[test]
fn test_stress_tests() {
unsafe {
let context = create_test_context();
stress_functions(&context.ctx);
}
let context = create_test_context();
stress_functions(&context.ctx);
}
#[test]