Skip to content

Commit 4ebe0a1

Browse files
committed
ZJIT: Restore x86 assembler tests
1 parent c489020 commit 4ebe0a1

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

zjit/src/asm/x86_64/tests.rs

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,10 @@
11
#![cfg(test)]
22

3-
//use crate::asm::x86_64::*;
3+
use crate::asm::x86_64::*;
44

5-
/*
65
/// Check that the bytes for an instruction sequence match a hex string
76
fn check_bytes<R>(bytes: &str, run: R) where R: FnOnce(&mut super::CodeBlock) {
8-
let mut cb = super::CodeBlock::new_dummy(4096);
7+
let mut cb = super::CodeBlock::new_dummy();
98
run(&mut cb);
109
assert_eq!(format!("{:x}", cb), bytes);
1110
}
@@ -439,9 +438,10 @@ fn basic_capstone_usage() -> std::result::Result<(), capstone::Error> {
439438
}
440439

441440
#[test]
441+
#[ignore]
442442
#[cfg(feature = "disasm")]
443443
fn block_comments() {
444-
let mut cb = super::CodeBlock::new_dummy(4096);
444+
let mut cb = super::CodeBlock::new_dummy();
445445

446446
let first_write_ptr = cb.get_write_ptr().raw_addr(&cb);
447447
cb.add_comment("Beginning");
@@ -458,4 +458,3 @@ fn block_comments() {
458458
assert_eq!(&vec!( "Two bytes in".to_string(), "Still two bytes in".to_string() ), cb.comments_at(second_write_ptr).unwrap());
459459
assert_eq!(&vec!( "Ten bytes in".to_string() ), cb.comments_at(third_write_ptr).unwrap());
460460
}
461-
*/

0 commit comments

Comments
 (0)