Commit 5790b6a
authored
[SYCL] fix for flaky ~event failure in Win unit tests (#19762)
Windows shutdown/teardown doesn't have the exact same timing as on
Linux, and even more in the the unit tests which are statically compiled
( so no DllMain() call, which means no space between the calls to
`shutdown_early()` and `shutdown_late()` ). Here we remove a race
between the platform deletion in the mock and the win shutdown. This
fixes a flaky failure we are seeing in a couple of the unit tests.
---------
Signed-off-by: Chris Perkins <[email protected]>1 parent 47a172b commit 5790b6a
File tree
2 files changed
+20
-8
lines changed- sycl/unittests
- context_device
- helpers
2 files changed
+20
-8
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
| 8 | + | |
8 | 9 | | |
9 | 10 | | |
10 | 11 | | |
| |||
31 | 32 | | |
32 | 33 | | |
33 | 34 | | |
| 35 | + | |
34 | 36 | | |
35 | 37 | | |
36 | 38 | | |
| |||
41 | 43 | | |
42 | 44 | | |
43 | 45 | | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
44 | 52 | | |
45 | 53 | | |
46 | 54 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
596 | 596 | | |
597 | 597 | | |
598 | 598 | | |
| 599 | + | |
| 600 | + | |
| 601 | + | |
| 602 | + | |
| 603 | + | |
| 604 | + | |
| 605 | + | |
| 606 | + | |
| 607 | + | |
| 608 | + | |
599 | 609 | | |
600 | 610 | | |
601 | 611 | | |
| |||
606 | 616 | | |
607 | 617 | | |
608 | 618 | | |
609 | | - | |
610 | | - | |
611 | | - | |
612 | | - | |
613 | | - | |
614 | | - | |
615 | | - | |
616 | | - | |
| 619 | + | |
| 620 | + | |
617 | 621 | | |
618 | 622 | | |
619 | 623 | | |
| |||
0 commit comments