Commit ddb72bc
Steffen Larsen
[SYCL][Unittests] Fix unloading of mock images on Windows (#19068)
The implementation of mock images try to unload the images using
__sycl_unregister_lib. However, this is a no-op on Windows under the
assumption that shutdown will handle the images. This causes unittests,
like RootGroup, to leave dead binaries in the program manager that
subsequent test runs may pick up. This commit fixes this issue by having
the mock image arrays forciby remove the images from the program manager
instead.
Signed-off-by: Larsen, Steffen <steffen.larsen@intel.com>1 parent 4fd438a commit ddb72bc
3 files changed
Lines changed: 14 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
134 | 134 | | |
135 | 135 | | |
136 | 136 | | |
| 137 | + | |
| 138 | + | |
| 139 | + | |
| 140 | + | |
137 | 141 | | |
138 | 142 | | |
139 | 143 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
49 | 49 | | |
50 | 50 | | |
51 | 51 | | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
52 | 55 | | |
53 | 56 | | |
54 | 57 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
363 | 363 | | |
364 | 364 | | |
365 | 365 | | |
366 | | - | |
| 366 | + | |
367 | 367 | | |
368 | 368 | | |
369 | | - | |
| 369 | + | |
| 370 | + | |
| 371 | + | |
| 372 | + | |
| 373 | + | |
| 374 | + | |
370 | 375 | | |
371 | 376 | | |
372 | 377 | | |
| |||
0 commit comments