diff options
author | Rohan McGovern <rohan.mcgovern@nokia.com> | 2010-06-03 03:44:07 (GMT) |
---|---|---|
committer | Rohan McGovern <rohan.mcgovern@nokia.com> | 2010-06-03 03:44:07 (GMT) |
commit | c0932de90e141d6f3eef3388c3caae22f3982798 (patch) | |
tree | d452c98631a23b19389d09562b6c2dea8543eb7b /tests/auto/maketestselftest/checktest | |
parent | 9140579d9e39f2a521cdab81ac09e2919645f108 (diff) | |
download | Qt-c0932de90e141d6f3eef3388c3caae22f3982798.zip Qt-c0932de90e141d6f3eef3388c3caae22f3982798.tar.gz Qt-c0932de90e141d6f3eef3388c3caae22f3982798.tar.bz2 |
Fixed tst_maketestselftest on QWS and Windows.
Diffstat (limited to 'tests/auto/maketestselftest/checktest')
-rw-r--r-- | tests/auto/maketestselftest/checktest/main.cpp | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/tests/auto/maketestselftest/checktest/main.cpp b/tests/auto/maketestselftest/checktest/main.cpp index e775665..af98953 100644 --- a/tests/auto/maketestselftest/checktest/main.cpp +++ b/tests/auto/maketestselftest/checktest/main.cpp @@ -68,8 +68,19 @@ int main(int argc, char** argv) args.removeFirst(); // ourself QString args_quoted = QString("'%1'").arg(args.join("','")); + +#ifdef Q_WS_QWS + { + // for QWS we expect tests to be run as the QWS server + QString qws = args.takeLast(); + if (qws != "-qws") { + fail(QString("Expected test to be run with `-qws', but it wasn't; args: %1").arg(args_quoted)); + } + } +#endif + if (args.count() != 1) { - fail(QString("Expected exactly one argument, got: %1").arg(args_quoted)); + fail(QString("These arguments are not what I expected: %1").arg(args_quoted)); } QString test = args.at(0); |