@bindir@/tizen-unittests/dlog/test_capi_coverage
for MODE in monitor priority_exact pid_wrong tid_wrong tag_wrong prefix_wrong sorting clear alias negative; do
- @bindir@/tizen-unittests/dlog/test_libdlogutil_cov $MODE 123 pipe
+ @bindir@/tizen-unittests/dlog/test_libdlogutil_cov $MODE 0 pipe
done
dlogsend -b main -b radio -b apps -b dotnet -b dotnet_api -b native -b native_api bla
void print_usage_and_die(const char *name)
{
fprintf(stderr, "Usage: %s TEST PID TYPE\n"
- "where PID is the process id of the logging process,\n"
+ "where PID is the process id of the logging process (or 0),\n"
"TYPE is \"pipe\" or \"logger\" depending on the backend used,\n"
"and TEST chooses a test and is one of the following:\n", name);
r = dlogutil_entry_get_message(e, &msg);
assert(r == 0);
- assert(!strcmp(tag, "SRPOL_LOGGER"));
+ // !pid also means we are fine looking at random logs
+ assert(!pid || !strcmp(tag, "SRPOL_LOGGER"));
pid_t apid, atid;
r = dlogutil_entry_get_pid(e, &apid);
r = dlogutil_entry_get_tid(e, &atid);
assert(r == 0);
- assert(pid == apid);
- assert(pid == atid);
+ assert(!pid || pid == apid);
+ assert(!pid || pid == atid);
switch (prio) {
case DLOG_ERROR: