History

Add testcase for elf_version

herman ten brugge committed 7 years ago

Commit b073a9c1 parent 7268fe72 files · +18 −0Browse files

Unified · Split

2 files
  1. tests/tests2/106_pthread.c +17 −0
  2. tests/tests2/106_pthread.expect +1 −0
tests/tests2/106_pthread.c+17−0
@@ -0,0 +1,17 @@
1+#include <stdio.h>
2+#include <pthread.h>
3+#include <errno.h>
4+
5+int
6+main(void)
7+{
8+ int ret;
9+ pthread_condattr_t attr;
10+ pthread_cond_t condition;
11+
12+ pthread_condattr_init (&attr);
13+ pthread_condattr_setpshared (&attr, PTHREAD_PROCESS_SHARED);
14+ printf ("%s\n", pthread_cond_init (&condition, &attr) ? "fail":"ok");
15+ pthread_condattr_destroy (&attr);
16+ return 0;
17+}
tests/tests2/106_pthread.expect+1−0
@@ -0,0 +1 @@
1+ok

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t