Commit 60a18ba
authored
EnsurePackage*Async() handling options.RegisterNewerIfAvailable(true). RegisterPackageByPackageFull/FamilyNameAsync crash. Test + Warning fixes (#4845)
EnsurePackage*Async() not handling options.RegisterNewerIfAvailable(true)
RegisterPackageByPackageFullNameAsync() and RegisterPackageByPackageFullNameAsync() take their target parameter as const hstring& resulting in the reference captured by their implementations' co_await and not the actual value. The caller deallocates the memory before Register... is done with it potentially leading to BadMojo(TM). Tests don't notice it as they're too simple to notice this use-after-free -- the memory may be deallocated but the memory's not overwritten (yet) in simple loads (like the tests). Larger scale (real world) use with more diverse memory patterns notice the problem (usually as a crash).
ApplicationDataTests_Elevated test cases were blocked state due to user context vs environmental state vs access control (ACLs whee!). Changed RunAs and associated test process setup to play nice together.
Fixed some PackageManagerTests that had incomplete state setup potentially causing false errors if a past previous test failed.
Fixed 400+ build warnings (mostly CS8305 due to [Experimental] attribute, almost all from OAuth generated C#/WinRT)
Removed redundant .props import (fixing a VS warning)
Fixed misleading log message
Removed wrong test cases
Added diagnostics to all Setup fixtures to hunt down Setup failures
Change IsReady tests to RunAs RestrictedUser
Fixed compiler warnings
Split ApplicationDataTests_Elevated to separate source file. Added diagnostics to ApplicationDataTests[_Elevated]. Moved TAEF display+compare support for C++/WinRT hstring into shared file (test/inc/WindowsAppRuntime.Test.TAEF.cppwinrt.h). Added Parameters to ApplicationData tests to (hopefully) troubleshoot failure.
Added whomi /all to build pipeline test output. Changed ApplicationData tests' default to IsolationLevel=Class (not TAEF's default =Module)
Changed PackageManager tests' default to IsolationLevel=Class (not TAEF's default =Module)
Factored tests into separate runs to aid troubleshooting failures
Added suppression of CS8305 (Feature is experimental... duh) as not helpful and negatively helpful (400+ warnings that are, for us, features).
https://task.ms/54835036
https://task.ms/54858998
https://task.ms/548849601 parent 6a5ac0c commit 60a18ba
51 files changed
Lines changed: 1385 additions & 514 deletions
File tree
- build/AzurePipelinesTemplates
- dev
- ApplicationData
- PackageManager/API
- Projections/CS
- Microsoft.Security.Authentication.OAuth
- Microsoft.Windows.AppLifecycle
- Microsoft.Windows.AppNotifications.Builder.Projection
- Microsoft.Windows.AppNotifications.Projection
- Microsoft.Windows.ApplicationModel.Background.Projection
- Microsoft.Windows.ApplicationModel.DynamicDependency
- Microsoft.Windows.ApplicationModel.WindowsAppRuntime
- Microsoft.Windows.Management.Deployment.Projection
- Microsoft.Windows.Media.Capture.Projection
- Microsoft.Windows.PushNotifications.Projection
- Microsoft.Windows.Security.AccessControl.Projection
- Microsoft.Windows.Storage.Projection
- Microsoft.Windows.System.Power
- Microsoft.Windows.System
- eng/PackageReference/IXP
- test
- ApplicationData
- CameraCaptureUITests
- PackageManager/API
- inc
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
Large diffs are not rendered by default.
Lines changed: 3 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
143 | 143 | | |
144 | 144 | | |
145 | 145 | | |
| 146 | + | |
| 147 | + | |
| 148 | + | |
146 | 149 | | |
147 | 150 | | |
148 | 151 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
92 | 92 | | |
93 | 93 | | |
94 | 94 | | |
95 | | - | |
| 95 | + | |
96 | 96 | | |
97 | 97 | | |
98 | 98 | | |
| |||
Lines changed: 26 additions & 6 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
429 | 429 | | |
430 | 430 | | |
431 | 431 | | |
432 | | - | |
| 432 | + | |
| 433 | + | |
| 434 | + | |
| 435 | + | |
| 436 | + | |
| 437 | + | |
| 438 | + | |
| 439 | + | |
| 440 | + | |
| 441 | + | |
| 442 | + | |
433 | 443 | | |
434 | 444 | | |
435 | 445 | | |
| |||
1222 | 1232 | | |
1223 | 1233 | | |
1224 | 1234 | | |
1225 | | - | |
| 1235 | + | |
1226 | 1236 | | |
1227 | 1237 | | |
1228 | 1238 | | |
| |||
1392 | 1402 | | |
1393 | 1403 | | |
1394 | 1404 | | |
1395 | | - | |
| 1405 | + | |
1396 | 1406 | | |
1397 | 1407 | | |
1398 | 1408 | | |
| |||
1612 | 1622 | | |
1613 | 1623 | | |
1614 | 1624 | | |
1615 | | - | |
| 1625 | + | |
1616 | 1626 | | |
1617 | 1627 | | |
1618 | 1628 | | |
| |||
1660 | 1670 | | |
1661 | 1671 | | |
1662 | 1672 | | |
1663 | | - | |
| 1673 | + | |
1664 | 1674 | | |
1665 | 1675 | | |
1666 | 1676 | | |
| |||
1892 | 1902 | | |
1893 | 1903 | | |
1894 | 1904 | | |
1895 | | - | |
| 1905 | + | |
| 1906 | + | |
| 1907 | + | |
| 1908 | + | |
| 1909 | + | |
| 1910 | + | |
| 1911 | + | |
| 1912 | + | |
| 1913 | + | |
| 1914 | + | |
| 1915 | + | |
1896 | 1916 | | |
1897 | 1917 | | |
1898 | 1918 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
60 | 60 | | |
61 | 61 | | |
62 | 62 | | |
63 | | - | |
64 | | - | |
| 63 | + | |
| 64 | + | |
65 | 65 | | |
66 | 66 | | |
67 | 67 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
103 | 103 | | |
104 | 104 | | |
105 | 105 | | |
106 | | - | |
| 106 | + | |
107 | 107 | | |
108 | 108 | | |
109 | 109 | | |
110 | 110 | | |
111 | | - | |
| 111 | + | |
112 | 112 | | |
113 | 113 | | |
114 | 114 | | |
| |||
Lines changed: 5 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
12 | 12 | | |
13 | 13 | | |
14 | 14 | | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
15 | 20 | | |
16 | 21 | | |
17 | 22 | | |
| |||
dev/Projections/CS/Microsoft.Windows.AppLifecycle/Microsoft.Windows.AppLifecycle.Projection.csproj
Lines changed: 6 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
| 1 | + | |
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
| |||
12 | 12 | | |
13 | 13 | | |
14 | 14 | | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
15 | 20 | | |
16 | 21 | | |
17 | 22 | | |
| |||
Lines changed: 5 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
12 | 12 | | |
13 | 13 | | |
14 | 14 | | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
15 | 20 | | |
16 | 21 | | |
17 | 22 | | |
| |||
Lines changed: 5 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
12 | 12 | | |
13 | 13 | | |
14 | 14 | | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
15 | 20 | | |
16 | 21 | | |
17 | 22 | | |
| |||
0 commit comments