diff options
| author | Stephen D. Huston <shuston@apache.org> | 2009-10-03 22:34:40 +0000 |
|---|---|---|
| committer | Stephen D. Huston <shuston@apache.org> | 2009-10-03 22:34:40 +0000 |
| commit | 0bbf4e6ea41fa075b0bfd046789967c8a7f2f74a (patch) | |
| tree | 3ac588eaafad755bf39931a9165ef9c7169a2c31 /cpp/src/tests/background.ps1 | |
| parent | f81547080ee98c69f6f505a388b504644f7197a8 (diff) | |
| download | qpid-python-0bbf4e6ea41fa075b0bfd046789967c8a7f2f74a.tar.gz | |
Look for qpidd.exe in various places, not just Debug
git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@821437 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'cpp/src/tests/background.ps1')
| -rw-r--r-- | cpp/src/tests/background.ps1 | 21 |
1 files changed, 18 insertions, 3 deletions
diff --git a/cpp/src/tests/background.ps1 b/cpp/src/tests/background.ps1 index 934078602b..36e9e4e6e9 100644 --- a/cpp/src/tests/background.ps1 +++ b/cpp/src/tests/background.ps1 @@ -30,11 +30,26 @@ trap { break } $encodedScript = [convert]::ToBase64String(
[Text.Encoding]::Unicode.GetBytes([string] $script))
-$p = new-object System.Diagnostics.Process
+#$p = new-object System.Diagnostics.Process
$si = new-object System.Diagnostics.ProcessStartInfo
$si.WorkingDirectory = $pwd
-$si.UseShellExecute = $true
$si.FileName = (get-command powershell.exe).Definition
$si.Arguments = "-encodedCommand $encodedScript"
-[diagnostics.process]::Start($si)
+###### debugging setup
+#$si.CreateNoWindow = $true
+# UseShellExecute false required for RedirectStandard(Error, Output)
+#$si.UseShellExecute = $false
+#$si.RedirectStandardError = $true
+#$si.RedirectStandardOutput = $true
+######
+$si.UseShellExecute = $true
+
+##### Debugging, instead of the plain Start() above.
+#$output = [io.File]::AppendText("start.out")
+#$error = [io.File]::AppendText("start.err")
+$p = [System.Diagnostics.Process]::Start($si)
+#$output.WriteLine($p.StandardOutput.ReadToEnd())
+#$error.WriteLine($p.StandardError.ReadToEnd())
+#$p.WaitForExit()
+#$output.Close()
|
