tests: unit: move the winstream test to new ztest API

Migrate the testsuite tests/unit/winstream to the new ztest API.

Signed-off-by: Enjia Mai <enjia.mai@intel.com>
This commit is contained in:
Enjia Mai 2022-08-21 16:28:00 +08:00 committed by Carles Cufí
commit 8f87885965
2 changed files with 3 additions and 8 deletions

View file

@ -15,7 +15,7 @@
const char *msg = "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789";
char wsmem[BUFLEN + 1]; /* Extra 1 to have a null for easier debugging */
void test_winstream(void)
ZTEST(winstream, test_winstream)
{
struct sys_winstream *ws = sys_winstream_init(wsmem, BUFLEN);
@ -97,10 +97,4 @@ void test_winstream(void)
}
}
void test_main(void)
{
ztest_test_suite(test_winstream,
ztest_unit_test(test_winstream)
);
ztest_run_test_suite(test_winstream);
}
ZTEST_SUITE(winstream, NULL, NULL, NULL, NULL, NULL);

View file

@ -0,0 +1 @@
CONFIG_ZTEST_NEW_API=y