File: test-lib.c

package info (click to toggle)
libahp-xc 1.4.7-1
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 412 kB
  • sloc: ansic: 1,925; python: 167; sh: 26; makefile: 3
file content (22 lines) | stat: -rw-r--r-- 346 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
#include <stdint.h>
#include <stdio.h>
#include <ahp/ahp_xc.h>

int main(int argc, char** argv)
{
 uint64_t threadCount = 0;
 int rc=0;

 threadCount=ahp_xc_max_threads(threadCount);
 if (threadCount!=1) {
   fprintf(stderr,"D: initial threadCount (%li) != 1\n",threadCount);
   rc=1;
 }

 if (rc==0) {
   printf("D: PASS\n");
 }

 return rc;
}