This file is indexed.

/usr/share/pocl/include/pocl_tests.h is in libpocl1-common 0.13-8.

This file is owned by root:root, with mode 0o644.

The actual contents of the file can be viewed below.

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
#ifndef POCL_TESTS_H
#define POCL_TESTS_H

#define CHECK_OPENCL_ERROR_IN(func_name)                                \
do {                                                                    \
   if(check_cl_error(err, __LINE__, func_name))                         \
     return EXIT_FAILURE;                                               \
} while (0)

#define TEST_ASSERT(EXP)                                                \
do {                                                                    \
  if (!(EXP)) {                                                         \
    fprintf(stderr, "Assertion: \n" #EXP "\nfailed on %s:%i\n",         \
        __FILE__, __LINE__);                                            \
    return EXIT_FAILURE;                                                \
  }                                                                     \
} while (0)

#endif