On Jan 3, 2013, at 3:23 AM, [email protected] wrote: > Hi! >> I am using LTP drop released on ltp-full-20120104 version. >> I have written a testcase to get user input data and call that testcase >> using "runltp", the command I use to get user input data is "read -t 10 >> response" >> But, when enter user input after running "runltp" it is not working. The >> same testcase is working fine getting user input from command line. >> Can any one help me why it is not working in LTP, is there any work around >> on this? > > Apart form this being a silly idea (LTP is automatic testsuite, you > install it, run it and go away till it's finished) the tests are > executed by the test driver process (ltp-pan) that is a process group > leader so there is no way they could read from standard in. > > [This is second attempt to send this mail, the first seems to have > disapeared somewhere between our mailserver and ltp mailing list]
I agree that putting a testcase into ltp that can't be automated is a showstopper, but I'm curious as to what he op had in mind for this test as there might be some utility to testing some I/O behavior with stdin, stdout, etc. Fwiw, using pan as-is with the read shell builtin probably won't work though without adding in some more shell-like syntax ;). Thanks, -Garrett ------------------------------------------------------------------------------ Master Visual Studio, SharePoint, SQL, ASP.NET, C# 2012, HTML5, CSS, MVC, Windows 8 Apps, JavaScript and much more. Keep your skills current with LearnDevNow - 3,200 step-by-step video tutorials by Microsoft MVPs and experts. SALE $99.99 this month only -- learn more at: http://p.sf.net/sfu/learnmore_122412 _______________________________________________ Ltp-list mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/ltp-list
