Version: 9.16.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
2import time
3if not os.path.exists( {!r} ):
4 time.sleep( 20 ) # first exec spend voluntary more than 10 seconds to test retry
5else:
6 time.sleep( 2 ) # second exec after retry
7j = 44
8"""

◆ FunnyCase_test6

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

◆ FunnyCase_test7

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

◆ FunnyCase_test8

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

◆ heatCPUCode

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

◆ killMeAtTheEnd

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

◆ killMeAtTheEnd2

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

◆ killMeCode

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

◆ normalCode

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