File tree Expand file tree Collapse file tree 1 file changed +4
-5
lines changed
Expand file tree Collapse file tree 1 file changed +4
-5
lines changed Original file line number Diff line number Diff line change 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
76fn 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" ) ]
443443fn 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- */
You can’t perform that action at this time.
0 commit comments