[NFC][asan] Speedup uar_signals.cpp test
It was the slowest test: -------------------------------------------------------------------------- 41.77s: AddressSanitizer-x86_64-linux :: TestCases/Linux/uar_signals.cpp 26.64s: AddressSanitizer-i386-linux :: TestCases/Linux/uar_signals.cpp 14.82s: AddressSanitizer-x86_64-linux :: TestCases/Posix/current_allocated_bytes.cpp 14.79s: AddressSanitizer-i386-linux :: TestCases/Posix/current_allocated_bytes.cpp 11.55s: AddressSanitizer-x86_64-linux :: TestCases/scariness_score_test.cpp 10.15s: AddressSanitizer-x86_64-linux :: TestCases/Posix/stack-use-after-return.cpp
This commit is contained in:
		
							parent
							
								
									882ce178b3
								
							
						
					
					
						commit
						a1e78aee66
					
				| 
						 | 
				
			
			@ -65,9 +65,9 @@ int main(int argc, char **argv) {
 | 
			
		|||
  EnableSigprof(SignalHandler);
 | 
			
		||||
 | 
			
		||||
  for (auto Thread : {&FastThread, &SlowThread}) {
 | 
			
		||||
    for (int i = 0; i < 1000; i++) {
 | 
			
		||||
    for (int i = 0; i < 100; i++) {
 | 
			
		||||
      fprintf(stderr, ".");
 | 
			
		||||
      const int kNumThread = sizeof(void*) == 8 ? 32 : 8;
 | 
			
		||||
      const int kNumThread = 8;
 | 
			
		||||
      pthread_t t[kNumThread];
 | 
			
		||||
      for (int i = 0; i < kNumThread; i++)
 | 
			
		||||
        pthread_create(&t[i], 0, Thread, 0);
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
		Reference in New Issue