@@ -1385,35 +1385,6 @@ def test_020_gdb_fork_and_access_file_bug(self):
13851385 with open ('fork_and_access_file_testfile' , 'w' ) as f :
13861386 f .write ('fork_and_access_file_testfile' )
13871387
1388- # TODO: move me to fs so i can benefit from plumbug from TC_50_EncryptedFiles
1389- def test_030_gdb_pf_rollback (self ):
1390- # To run this test manually, use:
1391- # GDB=1 GDB_SCRIPT=pf_rollback.gdb gramine-[sgx|direct] pf_rollback <file1> <file2>
1392- #
1393- # This test checks rollback protection.
1394- try :
1395- file1 = '/tmp_enc/pm_strict/file1'
1396- file2 = '/tmp_enc/pm_strict/file2'
1397- # TODO (MST): pre-create a version of file1
1398- stdout , _ = self .run_gdb (['pf_rollback' , file1 , file2 ], 'pf_rollback.gdb' )
1399- # TODO (MST): This test is not yet implemented.
1400- # - loop for /tmp_enc/pm_strict, /tmp_enc/pm_non_strict, /tmp_enc/pm_none
1401- # - define expected sequence for each test
1402-
1403- # - test_open_pre_existing
1404- self .assertIn ('FAIL: test_open_pre_existing' , stdout )
1405- # - test_test
1406- self .assertIn ('OK: test_test in adversary_save_file' , stdout )
1407- self .assertIn ('OK: test_test in adversary_reset_file' , stdout )
1408- self .assertIn (f'OK: test_test in adversary_delete_file({ file1 } )' , stdout )
1409- self .assertIn (f'OK: test_test in adversary_delete_file({ file2 } )' , stdout )
1410- self .assertIn ('EXITING GDB WITHOUT A GRAMINE ERROR' , stdout )
1411- self .assertNotIn ('EXITING GDB WITH A GRAMINE ERROR' , stdout )
1412- finally :
1413- # restore the trusted file contents (modified by the GDB script in this test)
1414- with open ('fork_and_access_file_testfile' , 'w' ) as f :
1415- f .write ('fork_and_access_file_testfile' )
1416-
14171388class TC_80_Socket (RegressionTestCase ):
14181389 def test_000_getsockopt (self ):
14191390 stdout , _ = self .run_binary (['getsockopt' ])
0 commit comments