From fe3d606f15c7c7c1733cf7f8ac23f2f0f086c593 Mon Sep 17 00:00:00 2001 From: "kjellander@webrtc.org" Date: Wed, 6 Feb 2013 09:36:37 +0000 Subject: [PATCH] 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 --- .../test/auto_test/source/vie_autotest_custom_call.cc | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/webrtc/video_engine/test/auto_test/source/vie_autotest_custom_call.cc b/webrtc/video_engine/test/auto_test/source/vie_autotest_custom_call.cc index dbe933b7e0..23b242caa1 100644 --- a/webrtc/video_engine/test/auto_test/source/vie_autotest_custom_call.cc +++ b/webrtc/video_engine/test/auto_test/source/vie_autotest_custom_call.cc @@ -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::max()); + } int file_selection = 0; while (selection == 2) {