GCC Code Coverage Report


Directory: ./
File: tests/unit/02_shmem/shmem_fail_00.c
Date: 2026-12-01 10:07:21
Exec Total Coverage
Lines: 0 4 0.0%
Functions: 0 1 0.0%
Branches: 0 0 -%

Line Branch Exec Source
1 /*********************************************************************************/
2 /* Copyright 2009-2021 Barcelona Supercomputing Center */
3 /* */
4 /* This file is part of the DLB library. */
5 /* */
6 /* DLB is free software: you can redistribute it and/or modify */
7 /* it under the terms of the GNU Lesser General Public License as published by */
8 /* the Free Software Foundation, either version 3 of the License, or */
9 /* (at your option) any later version. */
10 /* */
11 /* DLB is distributed in the hope that it will be useful, */
12 /* but WITHOUT ANY WARRANTY; without even the implied warranty of */
13 /* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the */
14 /* GNU Lesser General Public License for more details. */
15 /* */
16 /* You should have received a copy of the GNU Lesser General Public License */
17 /* along with DLB. If not, see <https://www.gnu.org/licenses/>. */
18 /*********************************************************************************/
19
20 #include "unique_shmem.h"
21
22 #include "LB_comm/shmem.h"
23
24 /* Check unfinalized shared memory */
25
26 struct data {
27 int foo;
28 };
29
30 ✗ int main(int argc, char **argv) {
31 struct data *shdata;
32 ✗ shmem_init((void**)&shdata,
33 ✗ &(const shmem_props_t) {
34 .size = sizeof(struct data),
35 .name = "cpuinfo",
36 .key = SHMEM_KEY,
37 });
38 ✗ return 0;
39 }
40