Home | History | Annotate | Download | only in tests

Lines Matching defs:Test

32 // This test can be compiled with pthreads (default) or
46 // This test must not include any other file specific to threading library,
119 // to update this test.
121 // Each test resides in its own namespace.
124 // Create a new test instead.
162 struct Test{
165 Test(void_func_void_t f, int flags)
169 Test() : f_(0), flags_(0) {}
185 std::map<int, Test> TheMapOfTests;
195 TheMapOfTests[id] = Test(f, flags);
207 // Useful to test against several different machines.
242 for (std::map<int,Test>::iterator it = TheMapOfTests.begin();
248 for (std::map<int,Test>::iterator it = TheMapOfTests.begin();
265 for (std::map<int,Test>::iterator it = TheMapOfTests.begin();
702 // otherwise this test is the same as test09.
735 // This test is properly synchronized, but currently (Dec 2007)
789 // This test is properly synchronized, but currently (Dec 2007)
837 // This test is essentially the same as test12, but uses LockWhen
892 // This test is properly synchronized, but currently (Dec 2007)
895 // This test is similar to test11, but uses PCQ (semaphore).
1498 // This test shows a very risky kind of synchronization which is very easy
1562 // This test is similar to test30, but
1617 // This test is well synchronized but helgrind 3.3.0 reports a race.
1676 // test33: STAB. Stress test for the number of thread sets (TSETs). {{{1
1730 // test34: STAB. Stress test for the number of locks sets (LSETs). {{{1
1772 // With the fix helgrind runs this test about a minute.
2087 // test41: TN. Test for race that appears when loading a dynamic symbol. {{{1
2641 // Correctly synchronized test, but the common lockset is empty.
2841 // Correctly synchronized test, but the common lockset is empty.
2883 // same as test 58 but annotated
2924 // same as test 59 but synchronized with signal-wait.
2978 // In this test Mutex lock/unlock operations introduce happens-before relation.
3287 // In this test, all writes to GLOB are protected by a mutex
3405 // This test is a reproducer for a benign race in strlen (as well as index, etc).
3455 // test72: STAB. Stress test for the number of segment sets (SSETs). {{{1
3536 // test73: STAB. Stress test for the number of (SSETs), different access sizes. {{{1
3643 // test75: TN. Test for sem_post, sem_wait, sem_trywait. {{{1
3996 // On Core 2 Duo this test will sometimes (quite rarely) fail in
4066 // This test, though incorrect, will almost never fail.
4093 // test84: TP. True race (regression test for a bug related to atomics){{{1
4097 // Bug found in by Bart Van Assche, the test is taken from
4131 // test85: Test for RunningOnValgrind(). {{{1
4141 // test86: Test for race inside DTOR: racey write to vptr. Benign. {{{1
4143 // This test shows a racey access to vptr (the pointer to vtbl).
4153 // On this particular test this race is benign, but test87 shows
4231 // test87: Test for race inside DTOR: racey write to vptr. Harmful.{{{1
4298 // test88: Test for ANNOTATE_IGNORE_WRITES_*{{{1
4308 printf("test88: negative, test for ANNOTATE_IGNORE_WRITES_*\n");
4319 // test89: Test for debug info. {{{1
4322 // Also, if run with --trace-level=2 this test will show a sequence of
4386 // test90: FP. Test for a safely-published pointer (read-only). {{{1
4437 // test91: FP. Test for a safely-published pointer (read-write). {{{1
4486 // test92: TN. Test for a safely-published pointer (read-write), annotated. {{{1
4553 // test93: TP. Test for incorrect usage of ANNOTATE_PUBLISH_MEMORY_RANGE. {{{1
4723 // test97: This test shows false negative with --fast-mode=yes {{{1
4746 printf("test97: This test shows false negative with --fast-mode=yes\n");
4819 // test99: TP. Unit test for a bug in LockWhen*. {{{1
4844 printf("test99: regression test for LockWhen*\n");
4853 // test100: Test for initialization bit. {{{1
4881 printf("test100: test for initialization bit. \n");
5115 // test107: Test for ANNOTATE_EXPECT_RACE {{{1
5321 // test111: TN. Unit test for a bug related to stack handling. {{{1
5368 printf("test111: regression test\n");
5378 // test112: STAB. Test for ANNOTATE_PUBLISH_MEMORY_RANGE{{{1
5506 const char *kSemName = "drt-test-sem";
5756 // test122 TP: Simple test with RWLock {{{1
5941 // This test does not worg with pthreads (you can't call
5968 // This test uses "Backwards mutex" locking protocol.
6026 // test126 TN: test for BlockingCounter {{{1
6069 // Please use --suppressions=unittest.supp flag when running this test.
6126 // This test verifies that the race detector handles
6696 void Thread1() { // Runs in thread named 'test-thread-1'.
6701 void Thread2() { // Runs in thread named 'test-thread-2'.
6709 MyThread t1(Thread1, NULL, "test-thread-1");
6710 MyThread t2(Thread2, NULL, "test-thread-2");
6721 // In this test we have many different accesses to GLOB and only one access
6829 // In this test GLOB is protected by MU1 and MU2, but inconsistently.
7112 // test312: A test with a very deep stack. {{{1
7145 // test313 TP: test for thread graph output {{{1
7343 * This test produces ~1Gb of memory usage when run with the following options:
7450 // int gives us ~4x speed of the byte test
7691 // test510: SS-recycle test {{{1
7708 //ANNOTATE_BENIGN_RACE(&GLOB, "Test");
7709 printf("test510: SS-recycle test\n");
7721 // test511: Segment refcounting test ('1' refcounting) {{{1
7738 // test512: Segment refcounting test ('S' refcounting) {{{1