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:
parent
81bb2a026b
commit
8f87885965
2 changed files with 3 additions and 8 deletions
|
@ -15,7 +15,7 @@
|
||||||
const char *msg = "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789";
|
const char *msg = "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789";
|
||||||
char wsmem[BUFLEN + 1]; /* Extra 1 to have a null for easier debugging */
|
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);
|
struct sys_winstream *ws = sys_winstream_init(wsmem, BUFLEN);
|
||||||
|
|
||||||
|
@ -97,10 +97,4 @@ void test_winstream(void)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
void test_main(void)
|
ZTEST_SUITE(winstream, NULL, NULL, NULL, NULL, NULL);
|
||||||
{
|
|
||||||
ztest_test_suite(test_winstream,
|
|
||||||
ztest_unit_test(test_winstream)
|
|
||||||
);
|
|
||||||
ztest_run_test_suite(test_winstream);
|
|
||||||
}
|
|
||||||
|
|
1
tests/unit/winstream/prj.conf
Normal file
1
tests/unit/winstream/prj.conf
Normal file
|
@ -0,0 +1 @@
|
||||||
|
CONFIG_ZTEST_NEW_API=y
|
Loading…
Add table
Add a link
Reference in a new issue