diff options
author | Sean Hall <r.sean.hall@gmail.com> | 2021-04-14 22:03:30 -0500 |
---|---|---|
committer | Sean Hall <r.sean.hall@gmail.com> | 2021-04-14 22:08:20 -0500 |
commit | 930b0ca136824d7f4917482fe7a7a577d28f6903 (patch) | |
tree | 2dc5693175597d82eacd440eec155edccad44be9 /src/test | |
parent | 3f4bd928ab4c048792bf4c5c10004a1f22e8aa19 (diff) | |
download | wix-930b0ca136824d7f4917482fe7a7a577d28f6903.tar.gz wix-930b0ca136824d7f4917482fe7a7a577d28f6903.tar.bz2 wix-930b0ca136824d7f4917482fe7a7a577d28f6903.zip |
Fix infinite loop in ResolveDelayedFieldsCommand and add failing test.
Diffstat (limited to 'src/test')
-rw-r--r-- | src/test/WixToolsetTest.CoreIntegration/BindVariablesFixture.cs | 28 | ||||
-rw-r--r-- | src/test/WixToolsetTest.CoreIntegration/TestData/BundleBindVariables/CacheIdFromPackageDescription.wxs | 8 |
2 files changed, 36 insertions, 0 deletions
diff --git a/src/test/WixToolsetTest.CoreIntegration/BindVariablesFixture.cs b/src/test/WixToolsetTest.CoreIntegration/BindVariablesFixture.cs index 857b84cc..44f9c802 100644 --- a/src/test/WixToolsetTest.CoreIntegration/BindVariablesFixture.cs +++ b/src/test/WixToolsetTest.CoreIntegration/BindVariablesFixture.cs | |||
@@ -10,6 +10,34 @@ namespace WixToolsetTest.CoreIntegration | |||
10 | 10 | ||
11 | public class BindVariablesFixture | 11 | public class BindVariablesFixture |
12 | { | 12 | { |
13 | [Fact(Skip = "Test demonstrates failure")] | ||
14 | public void CanBuildBundleWithPackageBindVariables() | ||
15 | { | ||
16 | var folder = TestData.Get(@"TestData"); | ||
17 | |||
18 | using (var fs = new DisposableFileSystem()) | ||
19 | { | ||
20 | var baseFolder = fs.GetFolder(); | ||
21 | var intermediateFolder = Path.Combine(baseFolder, "obj"); | ||
22 | var exePath = Path.Combine(baseFolder, @"bin\test.exe"); | ||
23 | |||
24 | var result = WixRunner.Execute(new[] | ||
25 | { | ||
26 | "build", | ||
27 | Path.Combine(folder, "BundleBindVariables", "CacheIdFromPackageDescription.wxs"), | ||
28 | Path.Combine(folder, "BundleWithPackageGroupRef", "Bundle.wxs"), | ||
29 | "-bindpath", Path.Combine(folder, "SimpleBundle", "data"), | ||
30 | "-bindpath", Path.Combine(folder, ".Data"), | ||
31 | "-intermediateFolder", intermediateFolder, | ||
32 | "-o", exePath, | ||
33 | }); | ||
34 | |||
35 | result.AssertSuccess(); | ||
36 | |||
37 | Assert.True(File.Exists(exePath)); | ||
38 | } | ||
39 | } | ||
40 | |||
13 | [Fact] | 41 | [Fact] |
14 | public void CanBuildWithDefaultValue() | 42 | public void CanBuildWithDefaultValue() |
15 | { | 43 | { |
diff --git a/src/test/WixToolsetTest.CoreIntegration/TestData/BundleBindVariables/CacheIdFromPackageDescription.wxs b/src/test/WixToolsetTest.CoreIntegration/TestData/BundleBindVariables/CacheIdFromPackageDescription.wxs new file mode 100644 index 00000000..7f5ea456 --- /dev/null +++ b/src/test/WixToolsetTest.CoreIntegration/TestData/BundleBindVariables/CacheIdFromPackageDescription.wxs | |||
@@ -0,0 +1,8 @@ | |||
1 | <?xml version="1.0" encoding="utf-8"?> | ||
2 | <Wix xmlns="http://wixtoolset.org/schemas/v4/wxs"> | ||
3 | <Fragment> | ||
4 | <PackageGroup Id="BundlePackages"> | ||
5 | <MsiPackage SourceFile="test.msi" CacheId="!(bind.packageDescription.test.msi)" /> | ||
6 | </PackageGroup> | ||
7 | </Fragment> | ||
8 | </Wix> | ||