/* * Copyright (c) 2002, Intel Corporation. All rights reserved. * Created by: salwan.searty REMOVE-THIS AT intel DOT com * This file is licensed under the GPL license. For the full content * of this license, see the COPYING file at the top level of this * source tree. * Test that when the null signal is sent to pthread_kill(), error checking is still performed. */ #include #include #include #include #include #include #include #include "posixtest.h" int main() { pthread_t main_thread; main_thread = pthread_self(); if (EINVAL != pthread_kill(main_thread, -1)) { printf("pthread_kill() did not fail on EINVAL\n"); return PTS_FAIL; } return PTS_PASS; }