+2007-11-02 Robert Jordan <robertj@gmx.net>
+
+ * ProcessTest.cs (TestRedirectedOutputIsAsync):
+ Instrument to see why the build bots are failing.
+
2007-11-01 Robert Jordan <robertj@gmx.net>
* ProcessTest.cs (TestRedirectedOutputIsAsync):
Assert.IsTrue ((DateTime.Now - start).TotalMilliseconds < 1000, "#01 BeginRead was not async");
p.WaitForExit ();
Assert.AreEqual (0, p.ExitCode, "#02 script failure");
-
- Assert.AreEqual ("hello", Encoding.Default.GetString (buffer, 0, 5), "#03");
+ if (bytesRead < "hello".Length)
+ Assert.Fail ("#03 got {0} bytes", bytesRead);
+ Assert.AreEqual ("hello", Encoding.Default.GetString (buffer, 0, 5), "#04");
}
void Read (IAsyncResult ar)
{
Stream stm = (Stream) ar.AsyncState;
- stm.EndRead (ar);
+ bytesRead = stm.EndRead (ar);
}
+
+ int bytesRead = Int32.MinValue;
}
}