From daaa509ee5e79e938e166dcaf6cdd758030021be Mon Sep 17 00:00:00 2001 From: Divy Srivastava Date: Mon, 8 Aug 2022 22:45:24 +0530 Subject: [PATCH] chore(ext/ffi): remove flaky test (#15426) --- ext/ffi/tcc.rs | 27 --------------------------- 1 file changed, 27 deletions(-) diff --git a/ext/ffi/tcc.rs b/ext/ffi/tcc.rs index edc30c8932c161..de7c719602f141 100644 --- a/ext/ffi/tcc.rs +++ b/ext/ffi/tcc.rs @@ -114,30 +114,3 @@ impl Drop for Compiler { unsafe { tcc_delete(self.inner) }; } } - -#[cfg(test)] -mod test { - use super::*; - use std::ffi::CString; - - #[test] - fn test_compiler_jit() { - let p = CString::new( - r#" - #include - int32_t add(int32_t a, int32_t b) { - return a + b; - } - "# - .as_bytes(), - ) - .unwrap(); - let sym = CString::new("add".as_bytes()).unwrap(); - - let mut ctx = Compiler::new().unwrap(); - let ops = CString::new("-nostdlib").unwrap(); - ctx.set_options(&ops); - assert!(ctx.compile_string(&p).is_ok()); - ctx.relocate_and_get_symbol(&sym).unwrap(); - } -}