blob: fcc52e02be518acc6d38de592610bc2001fafe27 [file] [log] [blame]
/*
* Copyright (c) 2023 meta
*
* SPDX-License-Identifier: Apache-2.0
*/
#include <zephyr/posix/sys/utsname.h>
#include <zephyr/posix/unistd.h>
#include <zephyr/ztest.h>
ZTEST(posix_single_process, 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)));
}