Changeset 29394 in vbox for trunk/src/VBox/HostServices/GuestProperties/testcase
- Timestamp:
- May 12, 2010 1:27:04 AM (15 years ago)
- svn:sync-xref-src-repo-rev:
- 61504
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/HostServices/GuestProperties/testcase/tstGuestPropSvc.cpp
r28800 r29394 727 727 int rc = VINF_SUCCESS; 728 728 VBOXHGCMCALLHANDLE_TYPEDEF callHandle = { VINF_SUCCESS }; 729 char chBuffer[MAX_NAME_LEN + MAX_VALUE_LEN + MAX_FLAGS_LEN];729 char achBuffer[MAX_NAME_LEN + MAX_VALUE_LEN + MAX_FLAGS_LEN]; 730 730 static char szPattern[] = ""; 731 731 … … 739 739 paParms[0].setPointer ((void *) szPattern, sizeof(szPattern)); 740 740 paParms[1].setUInt64 (u64Timestamp); 741 paParms[2].setPointer ((void *) chBuffer, getNotifications[0].cchBuffer - 1);741 paParms[2].setPointer ((void *) achBuffer, getNotifications[0].cchBuffer - 1); 742 742 pTable->pfnCall(pTable->pvService, &callHandle, 0, NULL, 743 743 GET_NOTIFICATION, 4, paParms); … … 760 760 paParms[0].setPointer ((void *) szPattern, sizeof(szPattern)); 761 761 paParms[1].setUInt64 (u64Timestamp); 762 paParms[2].setPointer ((void *) chBuffer, sizeof(chBuffer));762 paParms[2].setPointer ((void *) achBuffer, sizeof(achBuffer)); 763 763 pTable->pfnCall(pTable->pvService, &callHandle, 0, NULL, 764 764 GET_NOTIFICATION, 4, paParms); … … 768 768 || RT_FAILURE(paParms[3].getUInt32 (&u32Size)) 769 769 || u32Size != getNotifications[i].cchBuffer 770 || memcmp( chBuffer, getNotifications[i].pchBuffer, u32Size) != 0770 || memcmp(achBuffer, getNotifications[i].pchBuffer, u32Size) != 0 771 771 ) 772 772 { 773 RTPrintf("Failed to get notification for property '%s' .\n",774 getNotifications[i].pchBuffer );773 RTPrintf("Failed to get notification for property '%s' (rc=%Rrc).\n", 774 getNotifications[i].pchBuffer, rc); 775 775 rc = VERR_UNRESOLVED_ERROR; 776 776 }
Note:
See TracChangeset
for help on using the changeset viewer.