Version: 9.15.0
testCrashProofContainer Namespace Reference

Data Structures

class  testPerfLogManager1
 

Variables

string killMeCode
 
string normalCode
 
string heatCPUCode
 
string killMeAtTheEnd
 
string killMeAtTheEnd2
 
string FunnyCase_test5
 
string FunnyCase_test6
 
string FunnyCase_test7
 
string FunnyCase_test8
 

Variable Documentation

◆ FunnyCase_test5

string testCrashProofContainer.FunnyCase_test5
Initial value:
1 = """import os
2 import time
3 if not os.path.exists( {!r} ):
4  time.sleep( 20 ) # first exec spend voluntary more than 10 seconds to test retry
5 else:
6  time.sleep( 2 ) # second exec after retry
7 j = 44
8 """

◆ FunnyCase_test6

string testCrashProofContainer.FunnyCase_test6
Initial value:
1 = """
2 import numpy as np
3 import time
4 nb = i.shape[0]
5 del i
6 #time.sleep(10)
7 j = np.zeros(shape=(2*nb,),dtype=np.float64)
8 """

◆ FunnyCase_test7

string testCrashProofContainer.FunnyCase_test7
Initial value:
1 = """
2 import numpy as np
3 nb = i.shape[0]
4 j = np.zeros(shape=(2*nb,),dtype=np.float64)
5 """

◆ FunnyCase_test8

string testCrashProofContainer.FunnyCase_test8
Initial value:
1 = """
2 import sys
3 import time
4 # 100 kB
5 nb = 100000
6 time.sleep(3.)
7 print( nb * '1' )
8 sys.stderr.write( "{}\\n".format( nb * '3' ) )
9 time.sleep(3.)
10 print( nb * '2' )
11 sys.stderr.write( "{}\\n".format( nb * '4' ) )
12 j = i *4
13 """

◆ heatCPUCode

string testCrashProofContainer.heatCPUCode
Initial value:
1 = """import KernelBasis
2 nbcore = 3
3 cst = KernelBasis.GetTimeAdjustmentCst()
4 KernelBasis.HeatMarcel(5 * nbcore * cst,nbcore)
5 j = 8*i"""

◆ killMeAtTheEnd

string testCrashProofContainer.killMeAtTheEnd
Initial value:
1 = """import atexit
2 import KernelServices
3 
4 def ErrorAtexit():
5  KernelServices.GenerateViolentMemoryFaultForTestPurpose()
6 
7 atexit.register(ErrorAtexit)
8 
9 print("OKKKKKK")
10 j = 9 * i * a
11 print("OKKKKKK3333")
12 """

◆ killMeAtTheEnd2

string testCrashProofContainer.killMeAtTheEnd2
Initial value:
1 = """import atexit
2 import KernelServices
3 import os
4 
5 def ErrorAtexit():
6  KernelServices.GenerateViolentMemoryFaultForTestPurpose()
7 
8 atexit.register(ErrorAtexit)
9 
10 print("OKKKKKK")
11 j = 9 * i * a
12 k = os.getcwd()
13 print("OKKKKKK3333")
14 """

◆ killMeCode

string testCrashProofContainer.killMeCode
Initial value:
1 = """
2 import os
3 import sys
4 import signal
5 j = 7 * i
6 sys.stdout.write(str(j)) ; sys.stdout.flush() # the aime of test in replay mode to be sure that case is runnable
7 os.kill( os.getpid() , signal.SIGKILL)# the aim of test is here
8 """

◆ normalCode

string testCrashProofContainer.normalCode
Initial value:
1 = """
2 j = 8 * i
3 my_log_4_this_session.addFreestyleAndFlush( ("a",777) ) # to check that hidden var is still accessible
4 """