1 #include "tests.h" 2 3 #include <sys/stat.h> 4 #include <unistd.h> 5 6 void 7 skip_if_unavailable(const char *const path) 8 { 9 struct stat st; 10 11 if (stat(path, &st)) 12 perror_msg_and_skip("stat: %s", path); 13 } 14