Commit 08a5a83
committed
[ASan][Test-Only] Allow read of size 2 in strcmp.c test
Occasionally this test fails on Darwin due to `CHECK: READ of size 1` not matching the actual output `CHECK: READ of size 2`. This can happen when the memory before the string `s1` happens to match the first character of `s2`.
This patch allows for `READ of size 2` to pass in order to account for the above circumstances.
rdar://1513179471 parent 7b98280 commit 08a5a83
1 file changed
+3
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
14 | 14 | | |
15 | 15 | | |
16 | 16 | | |
17 | | - | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
18 | 20 | | |
19 | 21 | | |
0 commit comments