diff options
| author | Sean Hall <r.sean.hall@gmail.com> | 2019-09-30 10:26:16 +1000 |
|---|---|---|
| committer | Sean Hall <r.sean.hall@gmail.com> | 2019-09-30 13:14:35 +1000 |
| commit | d1ef3d5de29cdedce930f70e34b0e2b764f07269 (patch) | |
| tree | 4aa39e9bf7bb51a15da7eae2013a815387280e2c /src/test/WixToolsetTest.CoreIntegration/MsiQueryFixture.cs | |
| parent | a96ae75e256712829ac2174688c71e6a14ba1943 (diff) | |
| download | wix-d1ef3d5de29cdedce930f70e34b0e2b764f07269.tar.gz wix-d1ef3d5de29cdedce930f70e34b0e2b764f07269.tar.bz2 wix-d1ef3d5de29cdedce930f70e34b0e2b764f07269.zip | |
Add failing test for LockPermissions when Permissions is 0.
Diffstat (limited to 'src/test/WixToolsetTest.CoreIntegration/MsiQueryFixture.cs')
| -rw-r--r-- | src/test/WixToolsetTest.CoreIntegration/MsiQueryFixture.cs | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/src/test/WixToolsetTest.CoreIntegration/MsiQueryFixture.cs b/src/test/WixToolsetTest.CoreIntegration/MsiQueryFixture.cs index fb42d8fc..01f30825 100644 --- a/src/test/WixToolsetTest.CoreIntegration/MsiQueryFixture.cs +++ b/src/test/WixToolsetTest.CoreIntegration/MsiQueryFixture.cs | |||
| @@ -309,6 +309,39 @@ namespace WixToolsetTest.CoreIntegration | |||
| 309 | } | 309 | } |
| 310 | 310 | ||
| 311 | [Fact(Skip = "Test demonstrates failure")] | 311 | [Fact(Skip = "Test demonstrates failure")] |
| 312 | public void PopulatesLockPermissionsTableWithEmptyPermissions() | ||
| 313 | { | ||
| 314 | var folder = TestData.Get(@"TestData"); | ||
| 315 | |||
| 316 | using (var fs = new DisposableFileSystem()) | ||
| 317 | { | ||
| 318 | var baseFolder = fs.GetFolder(); | ||
| 319 | var intermediateFolder = Path.Combine(baseFolder, "obj"); | ||
| 320 | var msiPath = Path.Combine(baseFolder, @"bin\test.msi"); | ||
| 321 | |||
| 322 | var result = WixRunner.Execute(new[] | ||
| 323 | { | ||
| 324 | "build", | ||
| 325 | Path.Combine(folder, "LockPermissions", "EmptyPermissions.wxs"), | ||
| 326 | Path.Combine(folder, "ProductWithComponentGroupRef", "MinimalComponentGroup.wxs"), | ||
| 327 | Path.Combine(folder, "ProductWithComponentGroupRef", "Product.wxs"), | ||
| 328 | "-bindpath", Path.Combine(folder, "SingleFile", "data"), | ||
| 329 | "-intermediateFolder", intermediateFolder, | ||
| 330 | "-o", msiPath | ||
| 331 | }); | ||
| 332 | |||
| 333 | result.AssertSuccess(); | ||
| 334 | |||
| 335 | Assert.True(File.Exists(msiPath)); | ||
| 336 | var results = Query.QueryDatabase(msiPath, new[] { "LockPermissions" }); | ||
| 337 | Assert.Equal(new[] | ||
| 338 | { | ||
| 339 | "LockPermissions:INSTALLFOLDER\tCreateFolder\t\tAdministrator\t0", | ||
| 340 | }, results); | ||
| 341 | } | ||
| 342 | } | ||
| 343 | |||
| 344 | [Fact(Skip = "Test demonstrates failure")] | ||
| 312 | public void PopulatesUpgradeTableFromManualUpgrade() | 345 | public void PopulatesUpgradeTableFromManualUpgrade() |
| 313 | { | 346 | { |
| 314 | var folder = TestData.Get(@"TestData\ManualUpgrade"); | 347 | var folder = TestData.Get(@"TestData\ManualUpgrade"); |
