From b073a9c1037cc2cd15306463f84e8daea3dbdb1f Mon Sep 17 00:00:00 2001 From: herman ten brugge Date: Tue, 22 Oct 2019 20:43:30 +0200 Subject: [PATCH] Add testcase for elf_version --- tests/tests2/106_pthread.c | 17 +++++++++++++++++ tests/tests2/106_pthread.expect | 1 + 2 files changed, 18 insertions(+) create mode 100644 tests/tests2/106_pthread.c create mode 100644 tests/tests2/106_pthread.expect diff --git a/tests/tests2/106_pthread.c b/tests/tests2/106_pthread.c new file mode 100644 index 00000000..09308ed0 --- /dev/null +++ b/tests/tests2/106_pthread.c @@ -0,0 +1,17 @@ +#include +#include +#include + +int +main(void) +{ + int ret; + pthread_condattr_t attr; + pthread_cond_t condition; + + pthread_condattr_init (&attr); + pthread_condattr_setpshared (&attr, PTHREAD_PROCESS_SHARED); + printf ("%s\n", pthread_cond_init (&condition, &attr) ? "fail":"ok"); + pthread_condattr_destroy (&attr); + return 0; +} diff --git a/tests/tests2/106_pthread.expect b/tests/tests2/106_pthread.expect new file mode 100644 index 00000000..9766475a --- /dev/null +++ b/tests/tests2/106_pthread.expect @@ -0,0 +1 @@ +ok