Commit 8ad6d4fc authored by John Zhang's avatar John Zhang

delete the rust tests

parent 048f3b98
......@@ -9,7 +9,6 @@ mod test_ir;
mod test_compiler;
mod test_runtime;
mod test_api;
mod test_jit;
mod common {
use std::fmt;
......
extern crate libloading;
use mu::testutil::c_api::compile_run_c_test;
mod test_binops;
mod test_cmpops;
#[test]
fn test_constant_function() {
let dylib_path = compile_run_c_test("suite/test_constfunc.c");
let lib = libloading::Library::new(dylib_path.as_os_str()).unwrap();
unsafe {
let func : libloading::Symbol<unsafe extern fn() -> i32> = lib.get(b"test_fnc").unwrap();
assert!(func() == 0);
}
}
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment