diff options
author | Jo Asplin <jo.asplin@nokia.com> | 2011-09-12 09:21:12 +0200 |
---|---|---|
committer | Jo Asplin <jo.asplin@nokia.com> | 2011-09-12 10:08:29 +0200 |
commit | 4c43b60323e88befb08504c1ec67305cc8f57e70 (patch) | |
tree | f63216a07d69701e791839d7a9938337792eaf73 /tests/auto/tools/qmake/testdata/func_export | |
parent | 3ade4d260f3afe160bd593e27e18f1dffdbee398 (diff) |
Moved autotests in category 'tools' into new directory structure
Task-number: QTBUG-21355
Change-Id: I315d4b1f55d42391524c0e8625952dee1b96fca3
Reviewed-on: http://codereview.qt-project.org/4449
Reviewed-by: Qt Sanity Bot <qt_sanity_bot@ovi.com>
Reviewed-by: Rohan McGovern <rohan.mcgovern@nokia.com>
Diffstat (limited to 'tests/auto/tools/qmake/testdata/func_export')
-rw-r--r-- | tests/auto/tools/qmake/testdata/func_export/func_export.pro | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/tests/auto/tools/qmake/testdata/func_export/func_export.pro b/tests/auto/tools/qmake/testdata/func_export/func_export.pro new file mode 100644 index 0000000000..0cff1f830e --- /dev/null +++ b/tests/auto/tools/qmake/testdata/func_export/func_export.pro @@ -0,0 +1,22 @@ +defineTest(doExport) { + EXPORTED += $$1 + export(EXPORTED) +} + +defineTest(callDoExport) { + doExport(bar) + doExport(baz) + EXPORTED = oink + !isEqual(EXPORTED, "oink") { + message( "FAILED: function-scope exports [$$EXPORTED] != oink" ) + } +} + +doExport(foo) +callDoExport() +!isEqual(EXPORTED, "foo bar baz") { + message( "FAILED: global-scope exports [$$EXPORTED] != foo bar baz" ) +} + + + |