2024-03-16 01:07:16 +09:00
										 
									 
								 
							 | 
							
								
							 | 
							
								
							 | 
							
							
								# Set of tests run by default if --tsan is specified.  The tests below were
							 | 
						
					
						
							| 
								
							 | 
							
								
							 | 
							
								
							 | 
							
							
								# chosen because they use threads and run in a reasonable amount of time.
							 | 
						
					
						
							| 
								
							 | 
							
								
							 | 
							
								
							 | 
							
							
								
							 | 
						
					
						
							| 
								
							 | 
							
								
							 | 
							
								
							 | 
							
							
								TSAN_TESTS = [
							 | 
						
					
						
							
								
									
										
										
										
											2024-03-17 09:47:14 +01:00
										 
									 
								 
							 | 
							
								
									
										
									
								
							 | 
							
								
							 | 
							
							
								    # TODO: enable more of test_capi once bugs are fixed (GH-116908, GH-116909).
							 | 
						
					
						
							| 
								
							 | 
							
								
							 | 
							
								
							 | 
							
							
								    'test_capi.test_mem',
							 | 
						
					
						
							| 
								
							 | 
							
								
							 | 
							
								
							 | 
							
							
								    'test_capi.test_pyatomic',
							 | 
						
					
						
							
								
									
										
										
										
											2024-03-16 01:07:16 +09:00
										 
									 
								 
							 | 
							
								
							 | 
							
								
							 | 
							
							
								    'test_code',
							 | 
						
					
						
							| 
								
							 | 
							
								
							 | 
							
								
							 | 
							
							
								    'test_enum',
							 | 
						
					
						
							| 
								
							 | 
							
								
							 | 
							
								
							 | 
							
							
								    'test_functools',
							 | 
						
					
						
							| 
								
							 | 
							
								
							 | 
							
								
							 | 
							
							
								    'test_httpservers',
							 | 
						
					
						
							| 
								
							 | 
							
								
							 | 
							
								
							 | 
							
							
								    'test_imaplib',
							 | 
						
					
						
							| 
								
							 | 
							
								
							 | 
							
								
							 | 
							
							
								    'test_importlib',
							 | 
						
					
						
							| 
								
							 | 
							
								
							 | 
							
								
							 | 
							
							
								    'test_io',
							 | 
						
					
						
							| 
								
							 | 
							
								
							 | 
							
								
							 | 
							
							
								    'test_logging',
							 | 
						
					
						
							
								
									
										
										
										
											2024-03-16 23:52:44 +09:00
										 
									 
								 
							 | 
							
								
									
										
									
								
							 | 
							
								
							 | 
							
							
								    'test_queue',
							 | 
						
					
						
							
								
									
										
										
										
											2024-03-17 09:47:14 +01:00
										 
									 
								 
							 | 
							
								
									
										
									
								
							 | 
							
								
							 | 
							
							
								    'test_signal',
							 | 
						
					
						
							| 
								
							 | 
							
								
							 | 
							
								
							 | 
							
							
								    'test_socket',
							 | 
						
					
						
							| 
								
							 | 
							
								
							 | 
							
								
							 | 
							
							
								    'test_sqlite3',
							 | 
						
					
						
							
								
									
										
										
										
											2024-03-16 01:07:16 +09:00
										 
									 
								 
							 | 
							
								
							 | 
							
								
							 | 
							
							
								    'test_ssl',
							 | 
						
					
						
							| 
								
							 | 
							
								
							 | 
							
								
							 | 
							
							
								    'test_syslog',
							 | 
						
					
						
							| 
								
							 | 
							
								
							 | 
							
								
							 | 
							
							
								    'test_thread',
							 | 
						
					
						
							| 
								
							 | 
							
								
							 | 
							
								
							 | 
							
							
								    'test_threadedtempfile',
							 | 
						
					
						
							
								
									
										
										
										
											2024-03-16 12:55:46 +01:00
										 
									 
								 
							 | 
							
								
									
										
									
								
							 | 
							
								
							 | 
							
							
								    'test_threading',
							 | 
						
					
						
							
								
									
										
										
										
											2024-03-16 01:07:16 +09:00
										 
									 
								 
							 | 
							
								
							 | 
							
								
							 | 
							
							
								    'test_threading_local',
							 | 
						
					
						
							| 
								
							 | 
							
								
							 | 
							
								
							 | 
							
							
								    'test_threadsignals',
							 | 
						
					
						
							
								
									
										
										
										
											2024-03-16 23:52:44 +09:00
										 
									 
								 
							 | 
							
								
									
										
									
								
							 | 
							
								
							 | 
							
							
								    'test_weakref',
							 | 
						
					
						
							
								
									
										
										
										
											2024-03-16 01:07:16 +09:00
										 
									 
								 
							 | 
							
								
							 | 
							
								
							 | 
							
							
								]
							 | 
						
					
						
							| 
								
							 | 
							
								
							 | 
							
								
							 | 
							
							
								
							 | 
						
					
						
							| 
								
							 | 
							
								
							 | 
							
								
							 | 
							
							
								
							 | 
						
					
						
							| 
								
							 | 
							
								
							 | 
							
								
							 | 
							
							
								def setup_tsan_tests(cmdline_args):
							 | 
						
					
						
							| 
								
							 | 
							
								
							 | 
							
								
							 | 
							
							
								    if not cmdline_args:
							 | 
						
					
						
							| 
								
							 | 
							
								
							 | 
							
								
							 | 
							
							
								        cmdline_args[:] = TSAN_TESTS[:]
							 |