This file is indexed.

/usr/include/sfi/sfitests.h is in libbse-dev 0.7.4-4.

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
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
/* SfiTests - Utilities for writing test programs
 * Copyright (C) 2006 Tim Janik
 *
 * This library is free software; you can redistribute it and/or
 * modify it under the terms of the GNU Lesser General Public
 * License as published by the Free Software Foundation; either
 * version 2.1 of the License, or (at your option) any later version.
 *
 * This library is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
 * Lesser General Public License for more details.
 *
 * A copy of the GNU Lesser General Public License should ship along
 * with this library; if not, see http://www.gnu.org/copyleft/.
 */
#ifndef __SFI_TESTS_H__
#define __SFI_TESTS_H__

#include <sfi/sfi.h>
#include <birnet/birnettests.h>

/* --- test initialization --- */
static void BIRNET_UNUSED
sfi_init_test (int          *argcp,
	       char       ***argvp,
	       SfiInitValue *nvalues)
{
  SfiInitValue empty_init_value = { NULL, };
  if (!nvalues)
    nvalues = &empty_init_value;
  SfiInitValue jvalues[] = {
    { "stand-alone", "true" },
    { "birnet-test-parse-args", "true" },
    { NULL }
  };
  guint i, j = 0, n = 0;
  while (jvalues[j].value_name)
    j++;
  while (nvalues[n].value_name)
    n++;
  SfiInitValue *iv = g_new (SfiInitValue, j + n + 1);
  for (i = 0; i < j; i++)
    iv[i] = jvalues[i];
  for (i = 0; i < n; i++)
    iv[j + i] = nvalues[i];
  iv[j + n] = empty_init_value;
  sfi_init (argcp, argvp, NULL, iv);
  g_free (iv);
  unsigned int flags = g_log_set_always_fatal ((GLogLevelFlags) G_LOG_FATAL_MASK);
  g_log_set_always_fatal ((GLogLevelFlags) (flags | G_LOG_LEVEL_WARNING | G_LOG_LEVEL_CRITICAL));
  SfiCPUInfo ci = sfi_cpu_info();
  treport_cpu_name (ci.machine);
  g_printerr ("TEST: %s\n", g_get_prgname());
  /* check NULL definition, especially for 64bit */
  BIRNET_ASSERT (sizeof (NULL) == sizeof (void*));
}

#endif /* __SFI_TESTS_H__ */

/* vim:set ts=8 sts=2 sw=2: */