diff options
Diffstat (limited to 'src/test/WixToolsetTest.CoreIntegration/BadInputFixture.cs')
| -rw-r--r-- | src/test/WixToolsetTest.CoreIntegration/BadInputFixture.cs | 36 |
1 files changed, 36 insertions, 0 deletions
diff --git a/src/test/WixToolsetTest.CoreIntegration/BadInputFixture.cs b/src/test/WixToolsetTest.CoreIntegration/BadInputFixture.cs new file mode 100644 index 00000000..8482dcbe --- /dev/null +++ b/src/test/WixToolsetTest.CoreIntegration/BadInputFixture.cs | |||
| @@ -0,0 +1,36 @@ | |||
| 1 | // Copyright (c) .NET Foundation and contributors. All rights reserved. Licensed under the Microsoft Reciprocal License. See LICENSE.TXT file in the project root for full license information. | ||
| 2 | |||
| 3 | namespace WixToolsetTest.CoreIntegration | ||
| 4 | { | ||
| 5 | using System; | ||
| 6 | using System.IO; | ||
| 7 | using WixBuildTools.TestSupport; | ||
| 8 | using WixToolset.Core.TestPackage; | ||
| 9 | using Xunit; | ||
| 10 | |||
| 11 | public class BadInputFixture | ||
| 12 | { | ||
| 13 | [Fact(Skip = "Test demonstrates failure")] | ||
| 14 | public void RegistryKeyWithoutAttributesDoesntCrash() | ||
| 15 | { | ||
| 16 | var folder = TestData.Get(@"TestData\BadInput"); | ||
| 17 | |||
| 18 | using (var fs = new DisposableFileSystem()) | ||
| 19 | { | ||
| 20 | var baseFolder = fs.GetFolder(); | ||
| 21 | var intermediateFolder = Path.Combine(baseFolder, "obj"); | ||
| 22 | var wixlibPath = Path.Combine(intermediateFolder, @"test.wixlib"); | ||
| 23 | |||
| 24 | var result = WixRunner.Execute(new[] | ||
| 25 | { | ||
| 26 | "build", | ||
| 27 | Path.Combine(folder, "RegistryKey.wxs"), | ||
| 28 | "-intermediateFolder", intermediateFolder, | ||
| 29 | "-o", wixlibPath, | ||
| 30 | }); | ||
| 31 | |||
| 32 | Assert.InRange(result.ExitCode, 2, Int32.MaxValue); | ||
| 33 | } | ||
| 34 | } | ||
| 35 | } | ||
| 36 | } | ||
