summaryrefslogtreecommitdiffstats
path: root/Tests/MakeClean/check_clean.c.in
blob: e5a7945af2244c0cf781740319b90f5b79fc618b (plain)
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
#include <stdio.h>

int main()
{
  /* The list of files to check.  */
  const char* files[] =
    {
      @CHECK_FILES@
      0
    };

  /* No file should exist.  */
  const char** f = files;
  int result = 0;
  for(; *f; ++f)
    {
    FILE* pf = fopen(*f, "rb");
    if(pf)
      {
      fclose(pf);
      fprintf(stderr, "File \"%s\" still exists!\n", *f);
      result = 1;
      }
    }
  return result;
}