Changeset 13627 in vbox for trunk/src/VBox/HostServices/GuestProperties/testcase
- Timestamp:
- Oct 28, 2008 3:33:44 PM (16 years ago)
- svn:sync-xref-src-repo-rev:
- 38553
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/HostServices/GuestProperties/testcase/tstGuestPropSvc.cpp
r13574 r13627 52 52 { 53 53 int rc = VINF_SUCCESS; 54 RTPrintf(" Testing conversion of valid flags strings.\n");54 RTPrintf("tstGuestPropSvc: Testing conversion of valid flags strings.\n"); 55 55 for (unsigned i = 0; i < RT_ELEMENTS(validFlagStrings) && RT_SUCCESS(rc); ++i) 56 56 { … … 59 59 rc = validateFlags(validFlagStrings[i].pcszIn, &fFlags); 60 60 if (RT_FAILURE(rc)) 61 RTPrintf(" Failed to validate flag string %s.\n", validFlagStrings[i].pcszIn);61 RTPrintf("tstGuestPropSvc: FAILURE - Failed to validate flag string %s.\n", validFlagStrings[i].pcszIn); 62 62 if (RT_SUCCESS(rc)) 63 63 { 64 64 rc = writeFlags(fFlags, szFlagBuffer); 65 65 if (RT_FAILURE(rc)) 66 RTPrintf(" Failed to convert flag string %s back to a string.\n",66 RTPrintf("tstGuestPropSvc: FAILURE - Failed to convert flag string %s back to a string.\n", 67 67 validFlagStrings[i].pcszIn); 68 68 } 69 69 if (RT_SUCCESS(rc) && (strlen(szFlagBuffer) > MAX_FLAGS_LEN - 1)) 70 70 { 71 RTPrintf(" String %s converts back to a flag string which is too long.\n",71 RTPrintf("tstGuestPropSvc: FAILURE - String %s converts back to a flag string which is too long.\n", 72 72 validFlagStrings[i].pcszIn); 73 73 rc = VERR_TOO_MUCH_DATA; … … 75 75 if (RT_SUCCESS(rc) && (strcmp(szFlagBuffer, validFlagStrings[i].pcszOut) != 0)) 76 76 { 77 RTPrintf(" String %s converts back to %s instead of to %s\n",77 RTPrintf("tstGuestPropSvc: FAILURE - String %s converts back to %s instead of to %s\n", 78 78 validFlagStrings[i].pcszIn, szFlagBuffer, 79 79 validFlagStrings[i].pcszOut); … … 89 89 if (RT_FAILURE(testConvertFlags())) 90 90 return 1; 91 RTPrintf(" SUCCEEDED.\n");91 RTPrintf("tstGuestPropSvc: SUCCEEDED.\n"); 92 92 return 0; 93 93 }
Note:
See TracChangeset
for help on using the changeset viewer.