Changeset 65998 in vbox for trunk/src/VBox/HostServices/SharedFolders/testcase
- Timestamp:
- Mar 8, 2017 8:03:24 PM (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/HostServices/SharedFolders/testcase/tstSharedFolderService.cpp
r63760 r65998 751 751 RTTEST_CHECK_RC_OK(hTest, rc); 752 752 RTTEST_CHECK_MSG(hTest, 753 !strcmp(testRTFileOpenName, "/test/mapping/test/file"), 754 (hTest, "pszFilename=%s\n", testRTFileOpenName)); 753 !strcmp(&testRTFileOpenName[RTPATH_STYLE == RTPATH_STR_F_STYLE_DOS ? 2 : 0], 754 "/test/mapping/test/file"), 755 (hTest, "pszFilename=%s\n", &testRTFileOpenName[RTPATH_STYLE == RTPATH_STR_F_STYLE_DOS ? 2 : 0])); 755 756 RTTEST_CHECK_MSG(hTest, testRTFileOpenFlags == 0x181, 756 757 (hTest, "fOpen=%llu\n", LLUIFY(testRTFileOpenFlags))); … … 781 782 RTTEST_CHECK_RC_OK(hTest, rc); 782 783 RTTEST_CHECK_MSG(hTest, 783 !strcmp(testRTDirCreatePath, "/test/mapping/test/dir"), 784 (hTest, "pszPath=%s\n", testRTDirCreatePath)); 784 !strcmp(&testRTDirCreatePath[RTPATH_STYLE == RTPATH_STR_F_STYLE_DOS ? 2 : 0], 785 "/test/mapping/test/dir"), 786 (hTest, "pszPath=%s\n", &testRTDirCreatePath[RTPATH_STYLE == RTPATH_STR_F_STYLE_DOS ? 2 : 0])); 785 787 RTTEST_CHECK_MSG(hTest, 786 !strcmp(testRTDirOpenName, "/test/mapping/test/dir"), 787 (hTest, "pszFilename=%s\n", testRTDirOpenName)); 788 !strcmp(&testRTDirOpenName[RTPATH_STYLE == RTPATH_STR_F_STYLE_DOS ? 2 : 0], 789 "/test/mapping/test/dir"), 790 (hTest, "pszFilename=%s\n", &testRTDirOpenName[RTPATH_STYLE == RTPATH_STR_F_STYLE_DOS ? 2 : 0])); 788 791 RTTEST_CHECK_MSG(hTest, Result == SHFL_FILE_CREATED, 789 792 (hTest, "Result=%d\n", (int) Result)); … … 924 927 const uint32_t fMode = 0660; 925 928 SHFLFSOBJINFO Info; 926 SHFLHANDLE Handle;927 929 int rc; 928 930 … … 930 932 Root = initWithWritableMapping(hTest, &svcTable, &svcHelpers, 931 933 "/test/mapping", "testname"); 934 SHFLHANDLE Handle = SHFL_HANDLE_NIL; 932 935 testRTFileOpenpFile = hcFile; 933 936 rc = createFile(&svcTable, Root, "/test/file", SHFL_CF_ACCESS_READ, 934 937 &Handle, NULL); 935 RTTEST_CHECK_RC_OK(hTest, rc); 938 RTTEST_CHECK_RC_OK_RETV(hTest, rc); 939 936 940 RT_ZERO(Info); 937 941 testRTFileQueryInfoFMode = fMode;
Note:
See TracChangeset
for help on using the changeset viewer.