mirror of
https://github.com/serge1/ELFIO.git
synced 2024-12-27 12:17:28 +00:00
- Prevent binary file change in repository, restore test file after each run
This commit is contained in:
parent
00e37476c0
commit
bf2800a64a
@ -350,8 +350,11 @@ BOOST_AUTO_TEST_CASE( elfio_copy )
|
|||||||
write_exe_i386( false, true, 0x0100 );
|
write_exe_i386( false, true, 0x0100 );
|
||||||
|
|
||||||
e.load( "../elf_examples/write_exe_i386_32" );
|
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" );
|
section* new_sec = e.sections.add( "new" );
|
||||||
e.save( "../elf_examples/write_exe_i386_32" );
|
e.save( "../elf_examples/write_exe_i386_32" );
|
||||||
BOOST_CHECK_EQUAL( num + 1, e.sections.size() );
|
BOOST_CHECK_EQUAL( num + 1, e.sections.size() );
|
||||||
|
|
||||||
|
// Just return back the overwritten file
|
||||||
|
write_exe_i386( false, false, 0 );
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user