summaryrefslogtreecommitdiffstats
path: root/logcat
diff options
context:
space:
mode:
authorMark Salyzyn <salyzyn@google.com>2015-03-12 20:15:16 +0000
committerGerrit Code Review <noreply-gerritcodereview@google.com>2015-03-12 20:15:17 +0000
commit54c22e5b0af8b8799a7c473c7a76e44ca018742c (patch)
treedd26be3b8162d59426cd98d7298ac90d24058ef7 /logcat
parentecd993d74fafd762dad69cee97b3d84ce5806074 (diff)
parent9c51243d8bbcc5ee65dd6f7adc031e410ba5e86b (diff)
downloadsystem_core-54c22e5b0af8b8799a7c473c7a76e44ca018742c.zip
system_core-54c22e5b0af8b8799a7c473c7a76e44ca018742c.tar.gz
system_core-54c22e5b0af8b8799a7c473c7a76e44ca018742c.tar.bz2
Merge "logcat: test: logcat.logrotate fails"
Diffstat (limited to 'logcat')
-rw-r--r--logcat/tests/logcat_test.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/logcat/tests/logcat_test.cpp b/logcat/tests/logcat_test.cpp
index b358485..de2db67 100644
--- a/logcat/tests/logcat_test.cpp
+++ b/logcat/tests/logcat_test.cpp
@@ -505,12 +505,14 @@ TEST(logcat, logrotate) {
while (fgets(buffer, sizeof(buffer), fp)) {
static const char match_1[] = "4 log.txt";
static const char match_2[] = "8 log.txt";
- static const char match_3[] = "16 log.txt";
+ static const char match_3[] = "12 log.txt";
+ static const char match_4[] = "16 log.txt";
static const char total[] = "total ";
if (!strncmp(buffer, match_1, sizeof(match_1) - 1)
|| !strncmp(buffer, match_2, sizeof(match_2) - 1)
- || !strncmp(buffer, match_3, sizeof(match_3) - 1)) {
+ || !strncmp(buffer, match_3, sizeof(match_3) - 1)
+ || !strncmp(buffer, match_4, sizeof(match_4) - 1)) {
++count;
} else if (strncmp(buffer, total, sizeof(total) - 1)) {
fprintf(stderr, "WARNING: Parse error: %s", buffer);