diff options
Diffstat (limited to 'tests/auto/blackbox/testdata-qt')
-rw-r--r-- | tests/auto/blackbox/testdata-qt/unmocable/foo.h | 2 | ||||
-rw-r--r-- | tests/auto/blackbox/testdata-qt/unmocable/main.cpp | 6 | ||||
-rw-r--r-- | tests/auto/blackbox/testdata-qt/unmocable/unmocable.qbs | 11 |
3 files changed, 19 insertions, 0 deletions
diff --git a/tests/auto/blackbox/testdata-qt/unmocable/foo.h b/tests/auto/blackbox/testdata-qt/unmocable/foo.h new file mode 100644 index 000000000..a67438a72 --- /dev/null +++ b/tests/auto/blackbox/testdata-qt/unmocable/foo.h @@ -0,0 +1,2 @@ +#define Q_OBJECT 156 +int someNumber() { return Q_OBJECT; } diff --git a/tests/auto/blackbox/testdata-qt/unmocable/main.cpp b/tests/auto/blackbox/testdata-qt/unmocable/main.cpp new file mode 100644 index 000000000..e7a3f8df9 --- /dev/null +++ b/tests/auto/blackbox/testdata-qt/unmocable/main.cpp @@ -0,0 +1,6 @@ +#include "foo.h" + +int main() +{ + return someNumber() - 156; +} diff --git a/tests/auto/blackbox/testdata-qt/unmocable/unmocable.qbs b/tests/auto/blackbox/testdata-qt/unmocable/unmocable.qbs new file mode 100644 index 000000000..bb86fb223 --- /dev/null +++ b/tests/auto/blackbox/testdata-qt/unmocable/unmocable.qbs @@ -0,0 +1,11 @@ +import qbs + +Application { + Depends { name: "Qt.core" } + files: ["main.cpp"] + Group { + files: ["foo.h"] + fileTags: ["unmocable"] + overrideTags: false + } +} |