anandmeher / robotium

Automatically exported from code.google.com/p/robotium
0 stars 0 forks source link

Waiter.getLog doesn't throw Exception when logcat process encounter error #569

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Remove READ_LOGS permission from project under test. On my environment the 
problem would happens even READ_LOGS permission is present in AndroidManifest.
2. setup a test with memthod waitForLogMessage, e.g., 
mSolo.waitForLogMessage("some log")
3. When the test run waitForLogMessage would return false, although "some log" 
has dumped to logcat. Error stream from logcat process would report "android 
Unable to open log device '/dev/log/main': Permission denied".

What is the expected output? What do you see instead?
Expect it to throw Exception when return value from Process is non-zero. The 
Exception message would be the error message from error stream.

What version of the product are you using? On what operating system?
Robotium 4.3.1. Android 4.4.2 on Samsusng S2 with CyanFox.

Original issue reported on code.google.com by n...@orz.hk on 8 Jan 2014 at 4:05

GoogleCodeExporter commented 9 years ago
Thanks for reporting this. This will be included in the next release. 

Original comment by renasr...@gmail.com on 8 Jan 2014 at 7:19

GoogleCodeExporter commented 9 years ago
Hi,

Thanks. Is there any proper way so that I can submit code update for this
issue?

Neo

Original comment by n...@orz.hk on 8 Jan 2014 at 7:29

GoogleCodeExporter commented 9 years ago
Ah, I found the code is host in github so I will submit code changes there.

Original comment by n...@orz.hk on 8 Jan 2014 at 7:30

GoogleCodeExporter commented 9 years ago
Great.

Original comment by renasr...@gmail.com on 8 Jan 2014 at 7:31

GoogleCodeExporter commented 9 years ago
Thanks for contributing. This has been included in 5.1. 

Original comment by renasr...@gmail.com on 17 Mar 2014 at 6:08