summaryrefslogtreecommitdiff
path: root/src/test/burn/WixTestTools/TestTool.cs
diff options
context:
space:
mode:
authorSean Hall <r.sean.hall@gmail.com>2022-06-15 17:09:55 -0500
committerSean Hall <r.sean.hall@gmail.com>2022-06-15 18:27:22 -0500
commit223606fcd02e6d15e065d1e108e17c8848d35f9f (patch)
tree577b3187354582fd2c1c8edcbd8e16ac86624b87 /src/test/burn/WixTestTools/TestTool.cs
parentc4090531d4caac4b8cb3356cb971ff2e1c9f8704 (diff)
downloadwix-223606fcd02e6d15e065d1e108e17c8848d35f9f.tar.gz
wix-223606fcd02e6d15e065d1e108e17c8848d35f9f.tar.bz2
wix-223606fcd02e6d15e065d1e108e17c8848d35f9f.zip
Update some skipped tests to be dynamically skipped.
Diffstat (limited to 'src/test/burn/WixTestTools/TestTool.cs')
-rw-r--r--src/test/burn/WixTestTools/TestTool.cs12
1 files changed, 9 insertions, 3 deletions
diff --git a/src/test/burn/WixTestTools/TestTool.cs b/src/test/burn/WixTestTools/TestTool.cs
index 9c3a3ea6..eb77c75b 100644
--- a/src/test/burn/WixTestTools/TestTool.cs
+++ b/src/test/burn/WixTestTools/TestTool.cs
@@ -30,6 +30,11 @@ namespace WixTestTools
30 } 30 }
31 31
32 /// <summary> 32 /// <summary>
33 /// The alternate expected exit code of the tool
34 /// </summary>
35 public int? AlternateExitCode { get; set; }
36
37 /// <summary>
33 /// The arguments to pass to the tool 38 /// The arguments to pass to the tool
34 /// </summary> 39 /// </summary>
35 public virtual string Arguments { get; set; } 40 public virtual string Arguments { get; set; }
@@ -139,12 +144,13 @@ namespace WixTestTools
139 List<string> errors = new List<string>(); 144 List<string> errors = new List<string>();
140 145
141 // Verify that the expected return code matched the actual return code 146 // Verify that the expected return code matched the actual return code
142 if (null != this.ExpectedExitCode && this.ExpectedExitCode != result.ExitCode) 147 if (null != this.ExpectedExitCode && this.ExpectedExitCode != result.ExitCode &&
148 (null == this.AlternateExitCode || this.AlternateExitCode != result.ExitCode))
143 { 149 {
144 errors.Add(String.Format("Expected exit code {0} did not match actual exit code {1}", this.ExpectedExitCode, result.ExitCode)); 150 errors.Add(String.Format("Expected exit code {0} did not match actual exit code {1}", this.ExpectedExitCode, result.ExitCode));
145 } 151 }
146 152
147 var standardErrorString = string.Join(Environment.NewLine, result.StandardError); 153 var standardErrorString = String.Join(Environment.NewLine, result.StandardError);
148 154
149 // Verify that the expected error string are in stderr 155 // Verify that the expected error string are in stderr
150 if (null != this.ExpectedErrorStrings) 156 if (null != this.ExpectedErrorStrings)
@@ -158,7 +164,7 @@ namespace WixTestTools
158 } 164 }
159 } 165 }
160 166
161 var standardOutputString = string.Join(Environment.NewLine, result.StandardOutput); 167 var standardOutputString = String.Join(Environment.NewLine, result.StandardOutput);
162 168
163 // Verify that the expected output string are in stdout 169 // Verify that the expected output string are in stdout
164 if (null != this.ExpectedOutputStrings) 170 if (null != this.ExpectedOutputStrings)