mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-22 14:03:34 +08:00
POSIX: ported systemcmds/tests
Most of the systemcmds tests run in the posix build. The UART tests fail for me as I do not have a UART connected. Signed-off-by: Mark Charlebois <charlebm@gmail.com>
This commit is contained in:
@@ -45,7 +45,6 @@
|
||||
#include <unistd.h>
|
||||
#include <fcntl.h>
|
||||
#include <errno.h>
|
||||
#include <debug.h>
|
||||
|
||||
#include <arch/board/board.h>
|
||||
|
||||
@@ -104,7 +103,7 @@ cycletime(void)
|
||||
****************************************************************************/
|
||||
|
||||
/****************************************************************************
|
||||
* Name: test_led
|
||||
* Name: test_time
|
||||
****************************************************************************/
|
||||
|
||||
int test_time(int argc, char *argv[])
|
||||
@@ -153,11 +152,11 @@ int test_time(int argc, char *argv[])
|
||||
}
|
||||
|
||||
if (deltadelta > 1000) {
|
||||
fprintf(stderr, "h %llu c %llu d %lld\n", h, c, delta - lowdelta);
|
||||
fprintf(stderr, "h %" PRIu64 " c %" PRIu64 " d %" PRId64 "\n", h, c, delta - lowdelta);
|
||||
}
|
||||
}
|
||||
|
||||
printf("Maximum jitter %lldus\n", maxdelta);
|
||||
printf("Maximum jitter %" PRId64 "us\n", maxdelta);
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user