aboutsummaryrefslogtreecommitdiffstats
path: root/tests/auto/api/testdata/infinite-loop-js/infinite-loop.qbs
blob: 85f2b880e8179bde8547cec6c3ca308f9d77e578 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
import qbs

Product {
    type: "mytype"
    Transformer {
        Artifact {
            fileName: "output.txt"
            fileTags: "mytype"
        }
        prepare: {
            var cmd = new JavaScriptCommand();
            cmd.description = "Running infinite loop";
            cmd.sourceCode = function() {
                while (true)
                    ;
            }
            return cmd;
        }
    }
}