diff options
Diffstat (limited to 'src/test/burn/WixTestTools/TestTool.cs')
-rw-r--r-- | src/test/burn/WixTestTools/TestTool.cs | 12 |
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) |