diff options
author | Divy Srivastava <dj.srivastava23@gmail.com> | 2022-08-08 22:45:24 +0530 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-08-08 22:45:24 +0530 |
commit | daaa509ee5e79e938e166dcaf6cdd758030021be (patch) | |
tree | 8315a9fde90623b3f045f72e001069e56de89f96 | |
parent | 102595976ff3ec4a5f7e1cd2ca2bbaebf5a67132 (diff) |
chore(ext/ffi): remove flaky test (#15426)
-rw-r--r-- | ext/ffi/tcc.rs | 27 |
1 files changed, 0 insertions, 27 deletions
diff --git a/ext/ffi/tcc.rs b/ext/ffi/tcc.rs index edc30c893..de7c71960 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 <stdint.h> - 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(); - } -} |