Skip to content

Commit

Permalink
[NFC][asan] Speedup uar_signals.cpp test
Browse files Browse the repository at this point in the history
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
  • Loading branch information
vitalybuka committed Oct 15, 2021
1 parent 882ce17 commit a1e78ae
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions compiler-rt/test/asan/TestCases/Linux/uar_signals.cpp
Expand Up @@ -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);
Expand Down

0 comments on commit a1e78ae

Please sign in to comment.