<s> import angr <EOL> import os <EOL> import nose <EOL> test_location = str ( os . path . join ( os . path . dirname ( os . path . realpath ( __file__ ) ) , <EOL> '<STR_LIT>' ) ) <EOL> binpath = os . path . join ( test_location , "<STR_LIT>" ) <EOL> def check_addrs ( p ) : <EOL> libc = p . loader . shared_objects [ '<STR_LIT>' ] <EOL> ld = p . loader . shared_objects [ '<STR_LIT>' ] <EOL> nose . tools . assert_equal ( libc . rebase_addr , <NUM_LIT> ) <EOL> nose . tools . assert_equal ( ld . rebase_addr , <NUM_LIT> ) <EOL> def test_cle_gdb ( ) : <EOL> """<STR_LIT>""" <EOL> mappath = os . path . join ( test_location , "<STR_LIT>" ) <EOL> p = angr . Project ( binpath , load_options = { "<STR_LIT>" : mappath } ) <EOL> check_addrs ( p ) <EOL> def test_sharedlibs ( ) : <EOL> """<STR_LIT>""" <EOL> mappath = os . path . join ( test_location , "<STR_LIT>" ) <EOL> p = angr . Project ( binpath , load_options = { "<STR_LIT>" : mappath , "<STR_LIT>" : True } ) <EOL> check_addrs ( p ) <EOL> if __name__ == "<STR_LIT:__main__>" : <EOL> test_cle_gdb ( ) <EOL> test_sharedlibs ( ) </s>
