diff options
author | Brad King <brad.king@kitware.com> | 2005-02-09 14:21:01 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2005-02-09 14:21:01 (GMT) |
commit | 41b2216594093a2070c5eb7523c61fab7ff3f40e (patch) | |
tree | 9c8e302ed1446f73e9ba6fc170bc92004ec16dbf /Tests/MakeClean/check_clean.c.in | |
parent | f6f765e86f88210025d8cec8be562835972ad102 (diff) | |
download | CMake-41b2216594093a2070c5eb7523c61fab7ff3f40e.zip CMake-41b2216594093a2070c5eb7523c61fab7ff3f40e.tar.gz CMake-41b2216594093a2070c5eb7523c61fab7ff3f40e.tar.bz2 |
ENH: Adding test of "make clean".
Diffstat (limited to 'Tests/MakeClean/check_clean.c.in')
-rw-r--r-- | Tests/MakeClean/check_clean.c.in | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/Tests/MakeClean/check_clean.c.in b/Tests/MakeClean/check_clean.c.in new file mode 100644 index 0000000..5bc4ab8 --- /dev/null +++ b/Tests/MakeClean/check_clean.c.in @@ -0,0 +1,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\" exists!", *f); + result = 1; + } + } + return result; +} |