mirror of
https://git.rwth-aachen.de/acs/public/villas/node/
synced 2025-03-09 00:00:00 +01:00
tests: improve logging
This commit is contained in:
parent
62e1a7d962
commit
e46720d23b
2 changed files with 4 additions and 2 deletions
|
@ -76,8 +76,8 @@ Test(fpga, fifo, .description = "FIFO")
|
|||
}
|
||||
|
||||
/* Compare data */
|
||||
cr_assert_eq(memcmp(src, dst, sizeof(src)), 0);
|
||||
cr_assert_eq(memcmp(src, dst, sizeof(src)), 0, "Data not equal");
|
||||
|
||||
logger->info("All good for {}", *ip);
|
||||
logger->info(TXT_GREEN("Passed"));
|
||||
}
|
||||
}
|
||||
|
|
|
@ -65,6 +65,8 @@ Test(fpga, timer, .description = "Timer Counter")
|
|||
|
||||
cr_assert(std::abs(durationUs - oneSecondInUs) < 0.01 * oneSecondInUs,
|
||||
"Timer deviation > 1%%");
|
||||
|
||||
logger->info(TXT_GREEN("Passed"));
|
||||
}
|
||||
|
||||
return;
|
||||
|
|
Loading…
Add table
Reference in a new issue