diff options
Diffstat (limited to 'tests/auto/api/testdata/timeout-process/timeout.qbs')
-rw-r--r-- | tests/auto/api/testdata/timeout-process/timeout.qbs | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/tests/auto/api/testdata/timeout-process/timeout.qbs b/tests/auto/api/testdata/timeout-process/timeout.qbs new file mode 100644 index 000000000..9f1491ff4 --- /dev/null +++ b/tests/auto/api/testdata/timeout-process/timeout.qbs @@ -0,0 +1,24 @@ +Project { + CppApplication { + type: "application" + consoleApplication: true // suppress bundle generation + files: "main.cpp" + name: "infinite-loop" + } + + Product { + type: "product-under-test" + name: "caller" + Depends { name: "infinite-loop" } + Rule { + inputsFromDependencies: "application" + outputFileTags: "product-under-test" + prepare: { + var cmd = new Command(inputs["application"][0].filePath); + cmd.description = "Calling application that runs forever"; + cmd.timeout = 3; + return cmd; + } + } + } +} |