Sign in
pigweed
/
third_party
/
github
/
zephyrproject-rtos
/
zephyr
/
f02391af0bb3868bf5b00aeed7bdacefad31ec44
/
.
/
tests
/
posix
/
multi_process
/
src
/
getpid.c
blob: 6082bdac9015f90321fa820ceb8cf5aff708e683 [
file
] [
log
] [
blame
]
/*
* Copyright (c) 2025 Tenstorrent AI ULC
*
* SPDX-License-Identifier: Apache-2.0
*/
#include
<unistd.h>
#include
<zephyr/ztest.h>
ZTEST
(
posix_multi_process
,
test_getpid
)
{
pid_t
pid
=
getpid
();
zexpect_true
(
pid
>
0
,
"invalid pid: %d"
,
pid
);
}