Commit 8f878859 authored by Enjia Mai's avatar Enjia Mai Committed by Carles Cufi
Browse files

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



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

Signed-off-by: default avatarEnjia Mai <enjia.mai@intel.com>
parent 81bb2a02
Loading
Loading
Loading
Loading
+2 −8
Original line number Diff line number Diff line
@@ -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);
+1 −0
Original line number Diff line number Diff line
CONFIG_ZTEST_NEW_API=y