From 9f9407d3018fb4317e56bb78a74b9cdbf6c96306 Mon Sep 17 00:00:00 2001 From: Serge Lamikhov-Center Date: Sun, 10 Jul 2016 17:48:46 +0300 Subject: [PATCH] Adjust test to the changes done for note section --- ELFIOTest/ELFIOTest.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/ELFIOTest/ELFIOTest.cpp b/ELFIOTest/ELFIOTest.cpp index 465ad56..e8a89e8 100644 --- a/ELFIOTest/ELFIOTest.cpp +++ b/ELFIOTest/ELFIOTest.cpp @@ -279,7 +279,7 @@ BOOST_AUTO_TEST_CASE( load32 ) note_section_accessor notes( reader, sec ); BOOST_CHECK_EQUAL( notes.get_notes_num(), 1 ); - checkNote( notes, 0, 1, std::string( "GNU" ) + '\0', 16 ); + checkNote( notes, 0, 1, std::string( "GNU" ), 16 ); } @@ -388,7 +388,7 @@ BOOST_AUTO_TEST_CASE( load64 ) note_section_accessor notes( reader, sec ); BOOST_CHECK_EQUAL( notes.get_notes_num(), 1 ); - checkNote( notes, 0, 1, std::string( "GNU" ) + '\0', 16 ); + checkNote( notes, 0, 1, std::string( "GNU" ), 16 ); } @@ -699,7 +699,7 @@ BOOST_AUTO_TEST_CASE( test_ppc ) note_section_accessor notes( reader, sec ); BOOST_CHECK_EQUAL( notes.get_notes_num(), 1 ); - checkNote( notes, 0, 1, std::string( "GNU" ) + '\0', 16 ); + checkNote( notes, 0, 1, std::string( "GNU" ), 16 ); } ////////////////////////////////////////////////////////////////////////////////