Enable indefinitely running vie_auto_test option

When doing test automation, the prompt in vie_auto_test is not working as expected on Windows when the test is run from a Buildbot. As soon a prompt is presented to the test runner, vie_auto_test exits, assuming the user pressed Ctrl-D.

By adding a third option for the Stop/Modify call prompt that allows running the call indefinitely (and making that the default), no prompt is displayed when the --auto_custom_call flag is used.

BUG=none
TEST=Execution with vie_auto_test.exe --auto_custom_call --override "Enter destination IP.=192.168.3.11" and by running vie_auto_test in interactive mode.
+ Trybots passing.

Review URL: https://webrtc-codereview.appspot.com/1099004

git-svn-id: http://webrtc.googlecode.com/svn/trunk@3478 4adac7df-926f-26a2-2b94-8c16560cd09d
This commit is contained in:
kjellander@webrtc.org 2013-02-06 09:36:37 +00:00
parent 1e7ed7afe9
commit fe3d606f15

View File

@ -524,8 +524,12 @@ int ViEAutoTest::ViECustomCall() {
int selection = FromChoices(
"And now?",
"Stop the call\n"
"Modify the call\n").Choose();
"Modify the call\n"
"Keep the call running indefinitely\n")
.WithDefault("Keep the call running indefinitely").Choose();
if (selection == 3) {
AutoTestSleep(std::numeric_limits<long>::max());
}
int file_selection = 0;
while (selection == 2) {