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,
115 // to update this test.
117 // Each test resides in its own namespace.
120 // Create a new test instead.
158 struct Test{
161 Test(void_func_void_t f, int flags)
165 Test() : f_(0), flags_(0) {}
181 std::map<int, Test> TheMapOfTests;
191 TheMapOfTests[id] = Test(f, flags);
203 // Useful to test against several different machines.
238 for (std::map<int,Test>::iterator it = TheMapOfTests.begin();
244 for (std::map<int,Test>::iterator it = TheMapOfTests.begin();
261 for (std::map<int,Test>::iterator it = TheMapOfTests.begin();
698 // otherwise this test is the same as test09.
731 // This test is properly synchronized, but currently (Dec 2007)
785 // This test is properly synchronized, but currently (Dec 2007)
833 // This test is essentially the same as test12, but uses LockWhen
888 // This test is properly synchronized, but currently (Dec 2007)
891 // This test is similar to test11, but uses PCQ (semaphore).
1494 // This test shows a very risky kind of synchronization which is very easy
1558 // This test is similar to test30, but
1613 // This test is well synchronized but helgrind 3.3.0 reports a race.
1672 // test33: STAB. Stress test for the number of thread sets (TSETs). {{{1
1726 // test34: STAB. Stress test for the number of locks sets (LSETs). {{{1
1768 // With the fix helgrind runs this test about a minute.
2083 // test41: TN. Test for race that appears when loading a dynamic symbol. {{{1
2637 // Correctly synchronized test, but the common lockset is empty.
2837 // Correctly synchronized test, but the common lockset is empty.
2879 // same as test 58 but annotated
2920 // same as test 59 but synchronized with signal-wait.
2974 // In this test Mutex lock/unlock operations introduce happens-before relation.
3283 // In this test, all writes to GLOB are protected by a mutex
3401 // This test is a reproducer for a benign race in strlen (as well as index, etc).
3451 // test72: STAB. Stress test for the number of segment sets (SSETs). {{{1
3532 // test73: STAB. Stress test for the number of (SSETs), different access sizes. {{{1
3639 // test75: TN. Test for sem_post, sem_wait, sem_trywait. {{{1
3992 // On Core 2 Duo this test will sometimes (quite rarely) fail in
4062 // This test, though incorrect, will almost never fail.
4089 // test84: TP. True race (regression test for a bug related to atomics){{{1
4093 // Bug found in by Bart Van Assche, the test is taken from
4127 // test85: Test for RunningOnValgrind(). {{{1
4137 // test86: Test for race inside DTOR: racey write to vptr. Benign. {{{1
4139 // This test shows a racey access to vptr (the pointer to vtbl).
4149 // On this particular test this race is benign, but test87 shows
4227 // test87: Test for race inside DTOR: racey write to vptr. Harmful.{{{1
4294 // test88: Test for ANNOTATE_IGNORE_WRITES_*{{{1
4304 printf("test88: negative, test for ANNOTATE_IGNORE_WRITES_*\n");
4315 // test89: Test for debug info. {{{1
4318 // Also, if run with --trace-level=2 this test will show a sequence of
4382 // test90: FP. Test for a safely-published pointer (read-only). {{{1
4433 // test91: FP. Test for a safely-published pointer (read-write). {{{1
4482 // test92: TN. Test for a safely-published pointer (read-write), annotated. {{{1
4549 // test93: TP. Test for incorrect usage of ANNOTATE_PUBLISH_MEMORY_RANGE. {{{1
4719 // test97: This test shows false negative with --fast-mode=yes {{{1
4742 printf("test97: This test shows false negative with --fast-mode=yes\n");
4815 // test99: TP. Unit test for a bug in LockWhen*. {{{1
4840 printf("test99: regression test for LockWhen*\n");
4849 // test100: Test for initialization bit. {{{1
4877 printf("test100: test for initialization bit. \n");
5111 // test107: Test for ANNOTATE_EXPECT_RACE {{{1
5317 // test111: TN. Unit test for a bug related to stack handling. {{{1
5364 printf("test111: regression test\n");
5374 // test112: STAB. Test for ANNOTATE_PUBLISH_MEMORY_RANGE{{{1
5502 const char *kSemName = "drt-test-sem";
5752 // test122 TP: Simple test with RWLock {{{1
5937 // This test does not worg with pthreads (you can't call
5964 // This test uses "Backwards mutex" locking protocol.
6022 // test126 TN: test for BlockingCounter {{{1
6065 // Please use --suppressions=unittest.supp flag when running this test.
6122 // This test verifies that the race detector handles
6692 void Thread1() { // Runs in thread named 'test-thread-1'.
6697 void Thread2() { // Runs in thread named 'test-thread-2'.
6705 MyThread t1(Thread1, NULL, "test-thread-1");
6706 MyThread t2(Thread2, NULL, "test-thread-2");
6717 // In this test we have many different accesses to GLOB and only one access
6825 // In this test GLOB is protected by MU1 and MU2, but inconsistently.
7108 // test312: A test with a very deep stack. {{{1
7141 // test313 TP: test for thread graph output {{{1
7339 * This test produces ~1Gb of memory usage when run with the following options:
7446 // int gives us ~4x speed of the byte test
7687 // test510: SS-recycle test {{{1
7704 //ANNOTATE_BENIGN_RACE(&GLOB, "Test");
7705 printf("test510: SS-recycle test\n");
7717 // test511: Segment refcounting test ('1' refcounting) {{{1
7734 // test512: Segment refcounting test ('S' refcounting) {{{1