Sign in
android
/
platform
/
external
/
strace
/
refs/tags/android-wear-9.0.0_r12
/
.
/
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
);
}