Commit 0494778
authored
i#5365 AArch64 tests: fix drcacheoff.scale_time test for Ubuntu 24.04 (#7761)
Fix tool.drcacheoff.scale_time unit test by replacing the calls to
malloc() with calls to rand() which the compiler cannot optimize out. It
seems that g++ 11.5 was able to optimize out the calls to malloc() and
the resulting code was too fast for the timers to fire.
Issue: #53651 parent 5c81659 commit 0494778
1 file changed
+10
-13
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
144 | 144 | | |
145 | 145 | | |
146 | 146 | | |
147 | | - | |
| 147 | + | |
148 | 148 | | |
149 | 149 | | |
150 | 150 | | |
151 | 151 | | |
152 | | - | |
153 | | - | |
154 | | - | |
155 | | - | |
156 | | - | |
157 | | - | |
158 | | - | |
159 | | - | |
160 | | - | |
161 | | - | |
162 | | - | |
163 | | - | |
| 152 | + | |
| 153 | + | |
| 154 | + | |
| 155 | + | |
| 156 | + | |
| 157 | + | |
164 | 158 | | |
| 159 | + | |
| 160 | + | |
165 | 161 | | |
166 | 162 | | |
167 | 163 | | |
| |||
272 | 268 | | |
273 | 269 | | |
274 | 270 | | |
| 271 | + | |
275 | 272 | | |
276 | 273 | | |
277 | 274 | | |
| |||
0 commit comments