1 /* 2 * Copyright (c) 2023 meta 3 * 4 * SPDX-License-Identifier: Apache-2.0 5 */ 6 7 #include <zephyr/posix/sys/utsname.h> 8 #include <zephyr/posix/unistd.h> 9 #include <zephyr/ztest.h> 10 ZTEST(posix_single_process,test_uname)11ZTEST(posix_single_process, test_uname) 12 { 13 struct utsname info; 14 15 zassert_ok(uname(&info)); 16 zassert_ok(strncmp(info.sysname, "Zephyr", sizeof(info.sysname))); 17 zassert_ok(strncmp(info.machine, CONFIG_ARCH, sizeof(info.machine))); 18 } 19