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:
Mark Charlebois
2015-07-01 07:51:24 -07:00
parent 9c7450248f
commit 1e46f44123
30 changed files with 285 additions and 238 deletions
+3 -4
View File
@@ -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;
}