1
0
Fork 0
mirror of https://github.com/denoland/deno.git synced 2024-11-21 15:04:11 -05:00

chore(ext/ffi): remove flaky test (#15426)

This commit is contained in:
Divy Srivastava 2022-08-08 22:45:24 +05:30 committed by GitHub
parent 102595976f
commit daaa509ee5
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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();
}
}