summaryrefslogtreecommitdiff
path: root/Tests/RunCMake/CTestResourceAllocation/checkfree2.cmake
diff options
context:
space:
mode:
Diffstat (limited to 'Tests/RunCMake/CTestResourceAllocation/checkfree2.cmake')
-rw-r--r--Tests/RunCMake/CTestResourceAllocation/checkfree2.cmake8
1 files changed, 8 insertions, 0 deletions
diff --git a/Tests/RunCMake/CTestResourceAllocation/checkfree2.cmake b/Tests/RunCMake/CTestResourceAllocation/checkfree2.cmake
new file mode 100644
index 000000000..03b737cea
--- /dev/null
+++ b/Tests/RunCMake/CTestResourceAllocation/checkfree2.cmake
@@ -0,0 +1,8 @@
+setup_resource_tests()
+
+# This test is an attack on the resource scheduling algorithm. It has been
+# carefully crafted to fool the algorithm into thinking there aren't sufficient
+# resources for it.
+add_resource_test(Test1 1 "widgets:2;4,widgets:4")
+
+cleanup_resource_tests()