diff options
author | iximeow <me@iximeow.net> | 2024-06-21 02:05:24 -0700 |
---|---|---|
committer | iximeow <me@iximeow.net> | 2024-06-21 02:05:24 -0700 |
commit | d16cc79d7b7091f67328a0080634ce6cd4880dbd (patch) | |
tree | 3bc0a0d7d89a5a7b16b2e01514554b6ec9fbc830 /test | |
parent | e39d6b576da2f25490bf739b61fc8c9f3ab7c2ec (diff) |
things compile again, add a few more caution signs around InstructionTextBuffer
Diffstat (limited to 'test')
-rw-r--r-- | test/long_mode/mod.rs | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/test/long_mode/mod.rs b/test/long_mode/mod.rs index dcc9aad..7742496 100644 --- a/test/long_mode/mod.rs +++ b/test/long_mode/mod.rs @@ -79,7 +79,7 @@ fn test_display_under(decoder: &InstDecoder, data: &[u8], expected: &'static str ); let mut text2 = String::new(); - let mut out = yaxpeax_x86::long_mode::NoColorsSink { + let mut out = yaxpeax_x86::display::NoColorsSink { out: &mut text2, }; instr.write_to(&mut out).expect("printing succeeds"); @@ -94,12 +94,12 @@ fn test_display_under(decoder: &InstDecoder, data: &[u8], expected: &'static str text, ); - let mut formatter = yaxpeax_x86::long_mode::InstructionFormatter::new(); - let text3 = formatter.format_inst(&instr).expect("printing succeeds"); + let mut formatter = yaxpeax_x86::long_mode::InstructionTextBuffer::new(); + let text3 = formatter.format_inst(&instr.display_with(yaxpeax_x86::long_mode::DisplayStyle::Intel)).expect("printing succeeds"); assert!( text3 == text, - "display error through InstructionFormatter for {}:\n decoded: {:?} under decoder {}\n displayed: {}\n expected: {}\n", + "display error through InstructionTextBuffer for {}:\n decoded: {:?} under decoder {}\n displayed: {}\n expected: {}\n", hex, instr, decoder, |