blob: bda6ce666ea5b725e891dc4b07b51271bc8961e5 [file] [log] [blame]
/*
* Copyright (c) 2023 meta
*
* SPDX-License-Identifier: Apache-2.0
*/
#include <zephyr/ztest.h>
#include <sys/utsname.h>
ZTEST(posix_apis, test_uname)
{
struct utsname info;
zassert_ok(uname(&info));
zassert_ok(strncmp(info.sysname, "Zephyr", sizeof(info.sysname)));
zassert_ok(strncmp(info.machine, CONFIG_ARCH, sizeof(info.machine)));
}