Changeset 36809 in vbox for trunk/src/VBox/Additions/x11/VBoxClient/testcase
- Timestamp:
- Apr 21, 2011 11:03:07 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Additions/x11/VBoxClient/testcase/tstSeamlessX11-auto.cpp
r36802 r36809 15 15 */ 16 16 17 #include <iostream>18 17 #include <stdlib.h> /* exit() */ 19 18 … … 594 593 ++cErrs; 595 594 } 596 std::auto_ptr<std::vector<RTRECT> > rects = subject.getRects(); 597 if (rects->size() != pFixture->cReportedRects) 595 RTRECT *pRects = subject.getRects(); 596 size_t cRects = subject.getRectCount(); 597 if (cRects != pFixture->cReportedRects) 598 598 { 599 599 RTPrintf("%s: fixture: %s. Wrong number of rectangles reported after processing event (expected %u, got %u).\n", 600 600 g_pszTestName, pszDesc, pFixture->cReportedRects, 601 (*rects).size());601 cRects); 602 602 ++cErrs; 603 603 } 604 604 else 605 for (unsigned i = 0; i < rects->size(); ++i)606 if (!smlsCompRect(& (*rects)[i], &pFixture->paReportedRects[i]))605 for (unsigned i = 0; i < cRects; ++i) 606 if (!smlsCompRect(&pRects[i], &pFixture->paReportedRects[i])) 607 607 { 608 608 RTPrintf("%s: fixture: %s. Rectangle %u wrong after processing event.\n", 609 609 g_pszTestName, pszDesc, i); 610 610 smlsPrintDiffRects(&pFixture->paReportedRects[i], 611 & (*rects)[i]);611 &pRects[i]); 612 612 ++cErrs; 613 613 break; … … 615 615 subject.stop(); 616 616 subject.start(); 617 if ( rects->size()!= pFixture->cReportedRects)617 if (cRects != pFixture->cReportedRects) 618 618 { 619 619 RTPrintf("%s: fixture: %s. Wrong number of rectangles reported without processing event (expected %u, got %u).\n", 620 620 g_pszTestName, pszDesc, pFixture->cReportedRects, 621 (*rects).size());621 cRects); 622 622 ++cErrs; 623 623 } 624 624 else 625 for (unsigned i = 0; i < rects->size(); ++i)626 if (!smlsCompRect(& (*rects)[i], &pFixture->paReportedRects[i]))625 for (unsigned i = 0; i < cRects; ++i) 626 if (!smlsCompRect(&pRects[i], &pFixture->paReportedRects[i])) 627 627 { 628 628 RTPrintf("%s: fixture: %s. Rectangle %u wrong without processing event.\n", 629 629 g_pszTestName, pszDesc, i); 630 630 smlsPrintDiffRects(&pFixture->paReportedRects[i], 631 & (*rects)[i]);631 &pRects[i]); 632 632 ++cErrs; 633 633 break;
Note:
See TracChangeset
for help on using the changeset viewer.