aboutsummaryrefslogtreecommitdiff
path: root/src/test/WixToolsetTest.CoreIntegration/PayloadFixture.cs
diff options
context:
space:
mode:
Diffstat (limited to 'src/test/WixToolsetTest.CoreIntegration/PayloadFixture.cs')
-rw-r--r--src/test/WixToolsetTest.CoreIntegration/PayloadFixture.cs27
1 files changed, 27 insertions, 0 deletions
diff --git a/src/test/WixToolsetTest.CoreIntegration/PayloadFixture.cs b/src/test/WixToolsetTest.CoreIntegration/PayloadFixture.cs
index 4fc57c76..5b6bbeb5 100644
--- a/src/test/WixToolsetTest.CoreIntegration/PayloadFixture.cs
+++ b/src/test/WixToolsetTest.CoreIntegration/PayloadFixture.cs
@@ -3,6 +3,7 @@
3namespace WixToolsetTest.CoreIntegration 3namespace WixToolsetTest.CoreIntegration
4{ 4{
5 using System; 5 using System;
6 using System.Collections.Generic;
6 using System.IO; 7 using System.IO;
7 using System.Linq; 8 using System.Linq;
8 using WixBuildTools.TestSupport; 9 using WixBuildTools.TestSupport;
@@ -114,5 +115,31 @@ namespace WixToolsetTest.CoreIntegration
114 Assert.Equal(expectedPayloadMustBeRelativeToCache, result.Messages.Where(m => m.Id == (int)ErrorMessages.Ids.PayloadMustBeRelativeToCache).Count()); 115 Assert.Equal(expectedPayloadMustBeRelativeToCache, result.Messages.Where(m => m.Id == (int)ErrorMessages.Ids.PayloadMustBeRelativeToCache).Count());
115 } 116 }
116 } 117 }
118
119 [Fact(Skip = "https://github.com/wixtoolset/issues/issues/5273")]
120 public void RejectsPayloadSharedBetweenPackageAndBA()
121 {
122 var folder = TestData.Get(@"TestData");
123
124 using (var fs = new DisposableFileSystem())
125 {
126 var baseFolder = fs.GetFolder();
127 var intermediateFolder = Path.Combine(baseFolder, "obj");
128 var bundlePath = Path.Combine(baseFolder, @"bin\test.exe");
129
130 var result = WixRunner.Execute(new[]
131 {
132 "build",
133 Path.Combine(folder, "Payload", "SharedBAAndPackagePayloadBundle.wxs"),
134 Path.Combine(folder, "BundleWithPackageGroupRef", "Bundle.wxs"),
135 "-bindpath", Path.Combine(folder, "SimpleBundle", "data"),
136 "-bindpath", Path.Combine(folder, ".Data"),
137 "-intermediateFolder", intermediateFolder,
138 "-o", bundlePath,
139 });
140
141 Assert.InRange(result.ExitCode, 2, int.MaxValue);
142 }
143 }
117 } 144 }
118} 145}