Skip to content
Snippets Groups Projects
Commit bf2800a6 authored by Serge Lamikhov-Center's avatar Serge Lamikhov-Center
Browse files

- Prevent binary file change in repository, restore test file after each run

parent 00e37476
No related branches found
No related tags found
No related merge requests found
......@@ -350,8 +350,11 @@ BOOST_AUTO_TEST_CASE( elfio_copy )
write_exe_i386( false, true, 0x0100 );
e.load( "../elf_examples/write_exe_i386_32" );
Elf_Half num = e.sections.size();
Elf_Half num = e.sections.size();
section* new_sec = e.sections.add( "new" );
e.save( "../elf_examples/write_exe_i386_32" );
BOOST_CHECK_EQUAL( num + 1, e.sections.size() );
// Just return back the overwritten file
write_exe_i386( false, false, 0 );
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment