aboutsummaryrefslogtreecommitdiffstats
path: root/tests/auto/blackbox/testdata/overrideProjectProperties
diff options
context:
space:
mode:
authorJake Petroules <jake.petroules@theqtcompany.com>2015-09-12 22:15:50 -0700
committerJake Petroules <jake.petroules@theqtcompany.com>2015-09-15 16:40:35 +0000
commitc5dd63416836bbdb87961ddfee972a7db810912d (patch)
treed9f763bbb10d788d7ba18cf169ecda0fbbdfec81 /tests/auto/blackbox/testdata/overrideProjectProperties
parent3b2dcf0b1cf1ff51d05ae6955e25a25d967ac0d7 (diff)
Implement some of the non-standard yet common Console API.
This solves the problems with print() going to unredictable streams on some platforms due to possible QtScript bugs. It also provides logging integration with IDEs, and stylizes error and warning output with "ERROR: " and "WARNING: " prefixes and colors in color-capable terminals. Refactor autotests to accommodate. Task-number: QBS-548 Change-Id: I11767d51d3c2e7a97ca2b67e54377350aec2458d Reviewed-by: Joerg Bornemann <joerg.bornemann@theqtcompany.com>
Diffstat (limited to 'tests/auto/blackbox/testdata/overrideProjectProperties')
-rw-r--r--tests/auto/blackbox/testdata/overrideProjectProperties/project.qbs6
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/auto/blackbox/testdata/overrideProjectProperties/project.qbs b/tests/auto/blackbox/testdata/overrideProjectProperties/project.qbs
index a0e934a21..6e8ef62a1 100644
--- a/tests/auto/blackbox/testdata/overrideProjectProperties/project.qbs
+++ b/tests/auto/blackbox/testdata/overrideProjectProperties/project.qbs
@@ -16,15 +16,15 @@ Project {
// Provoke a build error if the expected types do not match.
var wrongFile = "doesnotexist.cpp";
if (typeof project.someBool != "boolean") {
- print("someBool has a wrong type: " + typeof project.someBool);
+ console.info("someBool has a wrong type: " + typeof project.someBool);
return wrongFile;
}
if (typeof project.someInt != "number") {
- print("someInt has a wrong type: " + typeof project.someInt);
+ console.info("someInt has a wrong type: " + typeof project.someInt);
return wrongFile;
}
if (typeof project.someStringList != "object") {
- print("someStringList has a wrong type: " + typeof project.someStringList);
+ console.info("someStringList has a wrong type: " + typeof project.someStringList);
return wrongFile;
}