1# This suppression file tests an extension to the suppression mechanism: 2# wildcards. The wildcard here is just an asterisk ('*') 3# which should match any number of functions (including zero). 4 5# To test the suppression mechanism with this file, run Helgrind 6# with 'racecheck_unittest 350' -- this is a test that has 7# a race with stack trace F1->F2->...->F8->F9 8 9 10#################### Positive tests (should match) ################# 11 12{ 13 match1 14 Helgrind:Race 15 fun:*F9* 16 * 17} 18 19 20{ 21 match2 22 Helgrind:Race 23 fun:*F9* 24 * 25 fun:*F8* 26} 27 28 29{ 30 match3 31 Helgrind:Race 32 * 33 fun:*F9* 34 fun:*F8* 35} 36 37{ 38 match4 39 Helgrind:Race 40 * 41 * 42 fun:*F9* 43 fun:*F8* 44} 45 46{ 47 match5 48 Helgrind:Race 49 * 50 fun:*F9* 51 * 52 fun:*F8* 53} 54 55 56{ 57 match6 58 Helgrind:Race 59 * 60 fun:*F7* 61 * 62 fun:*F5* 63 fun:*F4* 64 * 65 * 66 fun:*F3* 67 * 68 fun:*F2* 69} 70 71{ 72 match7 73 Helgrind:Race 74 * 75 fun:*F9* 76 * 77 fun:*F8* 78 fun:*F7* 79 * 80 fun:*F5* 81 * 82 fun:*F4* 83 fun:*F3* 84 * 85 fun:*F2* 86 fun:*F1* 87} 88 89{ 90 match8 91 Helgrind:Race 92 * 93 fun:*F9* 94 fun:*F8* 95 * 96 fun:*F3* 97 * 98 fun:*F1* 99} 100 101{ 102 wildcard at the end is ignored 103 Helgrind:Race 104 fun:*F9* 105 fun:*F8* 106 * 107} 108 109###################### Negative tests (should not match) ################## 110 111{ 112 nomatch 113 Helgrind:Race 114 fun:*F8* 115} 116{ 117 nomatch 118 Helgrind:Race 119 * 120 fun:*F8* 121 * 122 fun:*F8* 123} 124 125{ 126 nomatch 127 Helgrind:Race 128 * 129 fun:*XXXXX* 130} 131 132 133