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);
}