OpenCoverage

oslib.c

Absolute File Name:/home/opencoverage/opencoverage/guest-scripts/bash/src/lib/sh/oslib.c
Switch to Source codePreprocessed file
LineSourceCount
1-
2-
3-
4-
5-
6-
7-
8-
9-
10-
11-
12-
13-
14-
15-
16-
17int-
18getmaxgroups ()-
19{-
20 static int maxgroups = -1;-
21-
22 if (maxgroups > 0
maxgroups > 0Description
TRUEnever evaluated
FALSEevaluated 3 times by 1 test
Evaluated by:
  • Self test
)
0-3
23 return
never executed: return maxgroups;
maxgroups;
never executed: return maxgroups;
0
24-
25-
26 maxgroups = sysconf (-
27 _SC_NGROUPS_MAX-
28 );-
29 if (maxgroups <= 0
maxgroups <= 0Description
TRUEnever evaluated
FALSEevaluated 3 times by 1 test
Evaluated by:
  • Self test
)
0-3
30 maxgroups = 64;
never executed: maxgroups = 64;
0
31-
32 return
executed 3 times by 1 test: return maxgroups;
Executed by:
  • Self test
maxgroups;
executed 3 times by 1 test: return maxgroups;
Executed by:
  • Self test
3
33}-
34-
35long-
36getmaxchild ()-
37{-
38 static long maxchild = -1L;-
39-
40 if (maxchild > 0
maxchild > 0Description
TRUEevaluated 15 times by 1 test
Evaluated by:
  • Self test
FALSEevaluated 5432 times by 1 test
Evaluated by:
  • Self test
)
15-5432
41 return
executed 15 times by 1 test: return maxchild;
Executed by:
  • Self test
maxchild;
executed 15 times by 1 test: return maxchild;
Executed by:
  • Self test
15
42-
43-
44 maxchild = sysconf (-
45 _SC_CHILD_MAX-
46 );-
47 return
executed 5432 times by 1 test: return (maxchild);
Executed by:
  • Self test
(maxchild);
executed 5432 times by 1 test: return (maxchild);
Executed by:
  • Self test
5432
48}-
Switch to Source codePreprocessed file

Generated by Squish Coco 4.1.2