zephyr/tests/subsys/debug/gdbstub/src/main.c
Dmitrii Golovanov cbbb1cabd6 tests: gdbstub: Improve test case
Gdbstub test improvements: using pytest fixtures, parametrization, and
expected pattern matching on outputs from GDB and the test application.

Signed-off-by: Dmitrii Golovanov <dmitrii.golovanov@intel.com>
2023-10-20 15:03:55 +02:00

32 lines
371 B
C

/*
* Copyright (c) 2020 Intel Corporation.
*
* SPDX-License-Identifier: Apache-2.0
*/
#include <zephyr/kernel.h>
#include <zephyr/sys/printk.h>
#define STACKSIZE 512
static int test(void)
{
int a;
int b;
a = 10;
b = a * 2;
return a + b;
}
int main(void)
{
int ret;
printk("%s():enter\n", __func__);
ret = test();
printk("ret=%d\n", ret);
return 0;
}