Ignore:
Timestamp:
Aug 2, 2010, 9:27:30 PM (15 years ago)
Author:
Dmitry A. Kuminov
Message:

trunk: Merged in qt 4.6.3 sources from branches/vendor/nokia/qt.

Location:
trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk

  • trunk/src/testlib/qtestcase.cpp

    r651 r769  
    965965         " -xml       : Outputs results as XML document\n"
    966966         " -lightxml  : Outputs results as stream of XML tags\n"
    967          " -flush     : Flushes the resutls\n"
     967         " -flush     : Flushes the results\n"
    968968         " -o filename: Writes all output into a file\n"
    969969         " -silent    : Only outputs warnings and failures\n"
     
    11141114        } else if (strcmp(argv[i], "-qws") == 0) {
    11151115            // do nothing
     1116        } else if (strcmp(argv[i], "-graphicssystem") == 0) {
     1117            // do nothing
     1118            if (i + 1 >= argc) {
     1119                printf("-graphicssystem needs an extra parameter specifying the graphics system\n");
     1120                exit(1);
     1121            } else {
     1122                ++i;
     1123            }
    11161124        } else if (argv[i][0] == '-') {
    11171125            printf("Unknown option: '%s'\n\n%s", argv[i], testOptions);
     
    12991307            QTestResult::setSkipCurrentTest(false);
    13001308
     1309            // Data tag requested but none available?
     1310            if (data && !dataCount) {
     1311                // Let empty data tag through.
     1312                if (!*data)
     1313                    data = 0;
     1314                else {
     1315                    printf("Unknown testdata for function %s: '%s'\n", slotName, data);
     1316                    printf("Function has no testdata.\n");
     1317                    return false;
     1318                }
     1319            }
     1320
    13011321            /* For each entry in the data table, do: */
    13021322            do {
    13031323                if (!data || !qstrcmp(data, table.testData(curDataIndex)->dataTag())) {
    13041324                    foundFunction = true;
    1305                     QTestDataSetter s(table.isEmpty() ? static_cast<QTestData *>(0)
     1325                    QTestDataSetter s(curDataIndex >= dataCount ? static_cast<QTestData *>(0)
    13061326                                                      : table.testData(curDataIndex));
    13071327
Note: See TracChangeset for help on using the changeset viewer.