Those tests would start failing on some targets after the libdlogutil
patches. This would be due to them trying to clear/get size of the apps
buffer, which does not exist. This was accepted before the libdlogutil
patches, because dlogutil would consider all of the enabled buffers at
the same time. However, said patches change it to clear/get size of each
buffer separately and return on the first failure. We can work around
this issue by making it so that dlogutil will not try to manipulate the
apps buffer in the failing spots.
Change-Id: I5b3135256b99b0bc8f53a14fc68f99a9effbf6c3
[ $(dlogutil -d -b system | wc -l) -eq 0 ] && ok || fail
LOG_DETAILS="testing if dlogutil -c empties all buffers"
-dlogutil -c && ok || fail
+dlogutil -cb main && ok || fail
LOG_DETAILS="testing if writing entries to empty buffer and reading them returns proper amount of entries"
test_libdlog 10
[ $(dlogutil -b main -s -d | wc -l) -eq 0 ] && ok || fail
LOG_DETAILS="testing if reading buffer size returns proper exit code"
-dlogutil -g &> /dev/null && ok || fail
+dlogutil -gb main &> /dev/null && ok || fail
LOG_DETAILS="testing if writing all entries to single file works (-f)"
dlogutil -f $TESTDIR/dlog_test_file -d &> /dev/null && ok || fail