Commit 917de5d
authored
LongVectors tests: Fix device leak and improve logging (#7951)
Previously, if a device is removed then the code that recreates it
wouldn't release the old device pointer, resulting in the device
leaking. This actually prevents removed device recovery entirely, since
all references to a removed device need to be released before a new one
can be created. This change fixes that.
Also:
* improve logging in situations where requirements aren't met (eg trying
to create a SM 6.9 device on a system that doesn't support SM 6.9)
* return false from class setup if we couldn't create a device - this
will cause all the tests in the class to be skipped or failed (depending
on the FailIfRequirementsNotMet setting) - reducing log noise, and
saving the time that would be taken to run tests that we know are going
to fail
* improve logging when recreating a device so we can tell the difference
between "device was removed" and "there wasn't a device set"
* add a warning log if createDevice is called with something that looks
like it already has a value set
Fixes #79491 parent 3f85295 commit 917de5d
2 files changed
Lines changed: 31 additions & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
69 | 69 | | |
70 | 70 | | |
71 | 71 | | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
72 | 77 | | |
73 | 78 | | |
74 | 79 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1819 | 1819 | | |
1820 | 1820 | | |
1821 | 1821 | | |
1822 | | - | |
| 1822 | + | |
| 1823 | + | |
| 1824 | + | |
| 1825 | + | |
| 1826 | + | |
| 1827 | + | |
| 1828 | + | |
| 1829 | + | |
| 1830 | + | |
| 1831 | + | |
| 1832 | + | |
1823 | 1833 | | |
1824 | 1834 | | |
1825 | 1835 | | |
| |||
1828 | 1838 | | |
1829 | 1839 | | |
1830 | 1840 | | |
1831 | | - | |
1832 | | - | |
1833 | | - | |
1834 | | - | |
| 1841 | + | |
| 1842 | + | |
| 1843 | + | |
| 1844 | + | |
| 1845 | + | |
| 1846 | + | |
| 1847 | + | |
| 1848 | + | |
| 1849 | + | |
| 1850 | + | |
| 1851 | + | |
| 1852 | + | |
| 1853 | + | |
| 1854 | + | |
| 1855 | + | |
1835 | 1856 | | |
1836 | 1857 | | |
1837 | 1858 | | |
| |||
0 commit comments