Skip to content

Commit

Permalink
Test for malicious compilation
Browse files Browse the repository at this point in the history
  • Loading branch information
stefano-maggiolo committed Feb 2, 2015
1 parent 42ee954 commit b777dcd
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
5 changes: 5 additions & 0 deletions cmstestsuite/Tests.py
Expand Up @@ -101,6 +101,11 @@
languages=COMPILED_LANGUAGES,
checks=[CheckCompilationFail()]),

Test('compile-timeout',
task=batch_fileio, filename='compile-timeout.%l',
languages=(LANG_CPP,),
checks=[CheckCompilationFail()]),

# Various timeout conditions.

Test('timeout-cputime',
Expand Down
3 changes: 3 additions & 0 deletions cmstestsuite/code/compile-timeout.cpp
@@ -0,0 +1,3 @@
#include __FILE__
#include __FILE__
int main(){f();}

0 comments on commit b777dcd

Please sign in to comment.