test: add more testcases for formatting/parsing timestamp
This commit is contained in:
@@ -407,6 +407,10 @@ static void test_format_timestamp_impl(usec_t x) {
|
||||
|
||||
static void test_format_timestamp_loop(void) {
|
||||
test_format_timestamp_impl(USEC_PER_SEC);
|
||||
test_format_timestamp_impl(USEC_TIMESTAMP_FORMATTABLE_MAX_32BIT-1);
|
||||
test_format_timestamp_impl(USEC_TIMESTAMP_FORMATTABLE_MAX_32BIT);
|
||||
test_format_timestamp_impl(USEC_TIMESTAMP_FORMATTABLE_MAX-1);
|
||||
test_format_timestamp_impl(USEC_TIMESTAMP_FORMATTABLE_MAX);
|
||||
|
||||
for (unsigned i = 0; i < TRIAL; i++) {
|
||||
usec_t x;
|
||||
|
||||
Reference in New Issue
Block a user