#define _POSIX_C_SOURCE 200809L #include #include #include #include #include "config/rcxml.h" #include "tap.h" struct rcxml rc = { 0 }; static char src[] = "\n" "\n" "\n" " yes\n" "\n" "\n"; int main(int argc, char **argv) { plan(1); char template[] = "temp_file_XXXXXX"; int fd = mkstemp(template); if (fd < 0) exit(1); write(fd, src, sizeof(src) - 1); rcxml_read(template); unlink(template); diag("Simple parse rc.xml"); ok1(rc.client_side_decorations); return exit_status(); }