Gitiles
Code Review
Sign In
gerrit-public.fairphone.software
/
platform
/
external
/
strace
/
77c3ff8e0644f1e120e4b2ebc7222150b0446f3b
/
.
/
tests-m32
/
skip_unavailable.c
blob: 074fc3a250fd67b4abf9368c6fdebf6e3f8d4150 [
file
] [
log
] [
blame
]
#include
"tests.h"
#include
<sys/stat.h>
#include
<unistd.h>
void
skip_if_unavailable
(
const
char
*
const
path
)
{
struct
stat st
;
if
(
stat
(
path
,
&
st
))
perror_msg_and_skip
(
"stat: %s"
,
path
);
}