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:
parent
102595976f
commit
daaa509ee5
1 changed files with 0 additions and 27 deletions
|
@ -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();
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue