On Thu, Feb 14, 2013 at 12:41 PM, Jakub Jelinek <ja...@redhat.com> wrote: > On Thu, Feb 14, 2013 at 12:17:27PM +0400, Konstantin Serebryany wrote: >> On Wed, Feb 13, 2013 at 8:03 PM, Jakub Jelinek <ja...@redhat.com> wrote: >> > Hi! >> > >> > This patch backports the asan_test.cc changes since 2013-01-10 from >> > upstream. Unfortunately, it seems the tests can't really go standalone, >> > the 3 new tests actually use functions defined in asan_test.cc, so for now >> > asan_test.C just includes all the new tests. >> >> That's fine, although we may break it unwillingly in future. >> Btw, the reason for splitting this test was that it took too long (> >> 10s) to build it with debug (-O0) version of clang. > > So, how exactly are the tests linked with clang? Just separate object > files, linked into the same binary test, or somehow else? Not familiar with > cmake...
Yes, these tests are linked into a single binary. The llvm test runner runs them in parallel relying on the gtest sharding feature. --kcc > >> Done: http://llvm.org/viewvc/llvm-project?rev=175142&view=rev > > Thanks, now the difference in the files between gcc/testsuite/g++.dg/asan/ > and compiler-rt/lib/asan/tests which have the same name is really just > the two lines in the boilerplates. > > Jakub