diff --git a/src/systemcmds/tests/test_cli.c b/src/systemcmds/tests/test_cli.c index 337c8428cf..acc68524e8 100644 --- a/src/systemcmds/tests/test_cli.c +++ b/src/systemcmds/tests/test_cli.c @@ -49,7 +49,7 @@ #include "tests_main.h" -#ifdef PX4_NUTTX +#ifdef __PX4_NUTTX #define _px4_system(command) system(command) #else #define _px4_system(command) system("px4-"command) @@ -57,6 +57,7 @@ int test_cli(int argc, char *argv[]) { +#ifndef __PX4_NUTTX // This is not a fully built out test // suite yet and is more of a soak // test to ensure that the command exists @@ -68,5 +69,7 @@ int test_cli(int argc, char *argv[]) if (_px4_system("commander stop")) { return PX4_ERROR; } +#endif + return 0; }