aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/processor/exploitability_unittest.cc4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/processor/exploitability_unittest.cc b/src/processor/exploitability_unittest.cc
index 700f9e58..dc5650e3 100644
--- a/src/processor/exploitability_unittest.cc
+++ b/src/processor/exploitability_unittest.cc
@@ -194,8 +194,10 @@ TEST(ExploitabilityLinuxUtilsTest, DisassembleBytesTest) {
std::stringstream objdump_stream;
objdump_stream.str(string(buffer));
string line = "";
- while ((line.find("0:") == string::npos) && getline(objdump_stream, line)) {
+ while ((line.find("<.data>") == string::npos) &&
+ getline(objdump_stream, line)) {
}
+ ASSERT_TRUE(getline(objdump_stream, line));
ASSERT_EQ(line, " 0:\tc7 00 05 00 00 00 \tmov DWORD PTR [rax],0x5");
}