From 930b0ca136824d7f4917482fe7a7a577d28f6903 Mon Sep 17 00:00:00 2001 From: Sean Hall Date: Wed, 14 Apr 2021 22:03:30 -0500 Subject: Fix infinite loop in ResolveDelayedFieldsCommand and add failing test. --- .../BindVariablesFixture.cs | 28 ++++++++++++++++++++++ .../CacheIdFromPackageDescription.wxs | 8 +++++++ 2 files changed, 36 insertions(+) create mode 100644 src/test/WixToolsetTest.CoreIntegration/TestData/BundleBindVariables/CacheIdFromPackageDescription.wxs (limited to 'src/test') 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 public class BindVariablesFixture { + [Fact(Skip = "Test demonstrates failure")] + public void CanBuildBundleWithPackageBindVariables() + { + var folder = TestData.Get(@"TestData"); + + using (var fs = new DisposableFileSystem()) + { + var baseFolder = fs.GetFolder(); + var intermediateFolder = Path.Combine(baseFolder, "obj"); + var exePath = Path.Combine(baseFolder, @"bin\test.exe"); + + var result = WixRunner.Execute(new[] + { + "build", + Path.Combine(folder, "BundleBindVariables", "CacheIdFromPackageDescription.wxs"), + Path.Combine(folder, "BundleWithPackageGroupRef", "Bundle.wxs"), + "-bindpath", Path.Combine(folder, "SimpleBundle", "data"), + "-bindpath", Path.Combine(folder, ".Data"), + "-intermediateFolder", intermediateFolder, + "-o", exePath, + }); + + result.AssertSuccess(); + + Assert.True(File.Exists(exePath)); + } + } + [Fact] public void CanBuildWithDefaultValue() { 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 @@ + + + + + + + + -- cgit v1.2.3-55-g6feb