summaryrefslogtreecommitdiff
path: root/trusty/coverage/coverage_test.cpp
diff options
context:
space:
mode:
authorNick Kralevich <nnk@google.com>2011-10-18 15:23:33 -0700
committerNick Kralevich <nnk@google.com>2011-10-18 15:37:15 -0700
commite1ede1530ff21d3b8920c0cbbebb42ccff4fa22d (patch)
treebc5fc695fd90c961dc001baddbe91b207009b579 /trusty/coverage/coverage_test.cpp
parent4423df76f589e9fbd566f368c453758451c82f78 (diff)
liblog: do better checks of log messages.
Testing: The following test cases all passed and generated log entries: # echo -n '\03foo\0bar\0' > /dev/log/main # echo -n '\03\0bar\0' > /dev/log/main # echo -n '\03\0a\0' > /dev/log/main The following entries were successfully processed by logcat but produced no log entries: # echo -n '\03\0\0' > /dev/log/main # echo -n '\03a\0\0' > /dev/log/main # echo -n '\03b\0\0' > /dev/log/main Also tested the pathological error condition: cat /dev/urandom > /dev/log/main which produced many "+++ LOG: malformed log entry" errors. Bug: 5478600 Change-Id: I53bc79507242dcfc14445746c29edf47be0a90b4
Diffstat (limited to 'trusty/coverage/coverage_test.cpp')
0 files changed, 0 insertions, 0 deletions