diff options
| author | 2009-06-03 16:01:58 -0700 | |
|---|---|---|
| committer | 2009-06-03 16:01:58 -0700 | |
| commit | 53003de64e1d2b8a4ed4433d5192b540653d79ec (patch) | |
| tree | b600813db91c65f14ac621cd83b5790afd54a417 | |
| parent | b9a39cd300998a1a4577ac7eb87f9b505b8621dc (diff) | |
Skip empty lines in test url list.
| -rw-r--r-- | tests/DumpRenderTree/src/com/android/dumprendertree/ReliabilityTest.java | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/tests/DumpRenderTree/src/com/android/dumprendertree/ReliabilityTest.java b/tests/DumpRenderTree/src/com/android/dumprendertree/ReliabilityTest.java index e63aa95b558f..22c458cf926a 100644 --- a/tests/DumpRenderTree/src/com/android/dumprendertree/ReliabilityTest.java +++ b/tests/DumpRenderTree/src/com/android/dumprendertree/ReliabilityTest.java @@ -55,6 +55,9 @@ public class ReliabilityTest extends ActivityInstrumentationTestCase2<Reliabilit //read from BufferedReader instead of populating a list in advance, //this will avoid excessive memory usage in case of a large list while((url = listReader.readLine()) != null) { + url = url.trim(); + if(url.length() == 0) + continue; start = System.currentTimeMillis(); Log.v(LOGTAG, "Testing URL: " + url); updateTestStatus(url); |