blob: 87db099148b8dc2e2f4f485e8bf1bed9760eba22 [file] [log] [blame]
/* -*- Mode: C; tab-width: 8; c-basic-offset: 2; indent-tabs-mode: nil; -*- */
#include "util.h"
static void* start_thread(__attribute__((unused)) void* p) {
test_assert(11 == dup2(STDOUT_FILENO, 11));
test_assert(14 == write(11, "EXIT-SUCCESS\n", 14));
return NULL;
}
int main(void) {
pthread_t thread;
pthread_create(&thread, NULL, start_thread, NULL);
pthread_exit(NULL);
return 0;
}