zephyr/tests/kernel/threads/no-multithreading/src/main.c
Anas Nashif 006b97de13 tests: no-multithreading: do not report success twice
We are reporting success twice, once by calling macro directly, and once
by using ztest test_main().

Signed-off-by: Anas Nashif <anas.nashif@intel.com>
2019-03-26 20:09:07 -04:00

19 lines
550 B
C

/*
* Copyright (c) 2018 Intel Corporation
*
* SPDX-License-Identifier: Apache-2.0
*/
#include <zephyr.h>
/* The only point to CONFIG_MULTITHREADING=n is to use Zephyr's
* multiplatform toolchain, linkage and boostrap integration to arrive
* here so the user can run C code unimpeded. In general, we don't
* promise that *any* Zephyr APIs are going to work properly, so don't
* try to test any. That means we can't even use the ztest suite
* framework (which spawns threads internally).
*/
void test_main(void)
{
printk("It works\n");
}