samples: posix: gettimeofday: Add sample.yaml
To make sure this sample is built in CI. Also includes fixing prototype of main() to make it build without warnings (which would be errors in CI). Signed-off-by: Paul Sokolovsky <paul.sokolovsky@linaro.org>
This commit is contained in:
parent
4221642b28
commit
76861d008b
12
samples/posix/gettimeofday/sample.yaml
Normal file
12
samples/posix/gettimeofday/sample.yaml
Normal file
|
@ -0,0 +1,12 @@
|
|||
sample:
|
||||
description: POSIX API gettimeofday() example (with SNTP)
|
||||
name: gettimeofday
|
||||
common:
|
||||
filter: TOOLCHAIN_HAS_NEWLIB == 1
|
||||
harness: net
|
||||
min_ram: 32
|
||||
min_flash: 96
|
||||
tags: posix net
|
||||
tests:
|
||||
sample.posix.gettimeofday:
|
||||
harness: net
|
|
@ -10,7 +10,7 @@
|
|||
#include <sys/time.h>
|
||||
#include <unistd.h>
|
||||
|
||||
void main(void)
|
||||
int main(void)
|
||||
{
|
||||
struct timeval tv;
|
||||
|
||||
|
|
Loading…
Reference in a new issue