Changeset 80585 in vbox for trunk/src/VBox/Runtime/testcase
- Timestamp:
- Sep 4, 2019 2:05:50 PM (5 years ago)
- svn:sync-xref-src-repo-rev:
- 133105
- Location:
- trunk/src/VBox/Runtime/testcase
- Files:
-
- 4 edited
- 1 moved
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Runtime/testcase/Makefile.kmk
r79891 r80585 67 67 tstRTFileAio \ 68 68 tstRTFileAppend-1 \ 69 tstRTFile GetSize-1 \69 tstRTFileQuerySize-1 \ 70 70 tstRTFileModeStringToFlags \ 71 71 tstFileLock \ … … 362 362 tstRTFileAppend-1_SOURCES = tstRTFileAppend-1.cpp 363 363 364 tstRTFile GetSize-1_TEMPLATE = VBOXR3TSTEXE365 tstRTFile GetSize-1_SOURCES = tstRTFileGetSize-1.cpp364 tstRTFileQuerySize-1_TEMPLATE = VBOXR3TSTEXE 365 tstRTFileQuerySize-1_SOURCES = tstRTFileQuerySize-1.cpp 366 366 367 367 tstRTFileModeStringToFlags_TEMPLATE = VBOXR3TSTEXE -
trunk/src/VBox/Runtime/testcase/tstFile.cpp
r76553 r80585 51 51 52 52 RTFOFF cbMax = -2; 53 rc = RTFile GetMaxSizeEx(File, &cbMax);54 if (RT_FAILURE(rc)) 55 { 56 RTPrintf("tstFile: RTFile GetMaxSizeEx failed: %Rrc\n", rc);53 rc = RTFileQueryMaxSizeEx(File, &cbMax); 54 if (RT_FAILURE(rc)) 55 { 56 RTPrintf("tstFile: RTFileQueryMaxSizeEx failed: %Rrc\n", rc); 57 57 cErrors++; 58 58 } 59 59 else if (cbMax <= 0) 60 60 { 61 RTPrintf("tstFile: RTFile GetMaxSizeEx failed: cbMax=%RTfoff\n", cbMax);61 RTPrintf("tstFile: RTFileQueryMaxSizeEx failed: cbMax=%RTfoff\n", cbMax); 62 62 cErrors++; 63 63 } … … 80 80 { 81 81 uint64_t cb; 82 rc = RTFile GetSize(File, &cb);82 rc = RTFileQuerySize(File, &cb); 83 83 if (RT_FAILURE(rc)) 84 84 { … … 88 88 else if (cb != _2G + _1M) 89 89 { 90 RTPrintf("RTFile GetSize return %RX64 bytes, expected %RX64.\n", cb, _2G + _1M);90 RTPrintf("RTFileQuerySize return %RX64 bytes, expected %RX64.\n", cb, _2G + _1M); 91 91 cErrors++; 92 92 } -
trunk/src/VBox/Runtime/testcase/tstRTDvm.cpp
r77256 r80585 190 190 191 191 uint64_t cb = 0; 192 rc = RTVfsFile GetSize(hVfsDisk, &cb);192 rc = RTVfsFileQuerySize(hVfsDisk, &cb); 193 193 if ( RT_FAILURE(rc) 194 194 || cb % 512 != 0) /* Assume 512 byte sector size. */ 195 195 { 196 RTTestIFailed("RTVfsFile GetSize -> %Rrc", rc);196 RTTestIFailed("RTVfsFileQuerySize -> %Rrc", rc); 197 197 return RTTestSummaryAndDestroy(hTest); 198 198 } -
trunk/src/VBox/Runtime/testcase/tstRTFileQuerySize-1.cpp
r80584 r80585 1 1 /* $Id$ */ 2 2 /** @file 3 * IPRT Testcase - RTFile GetSize.3 * IPRT Testcase - RTFileQuerySize. 4 4 */ 5 5 … … 58 58 59 59 uint64_t cbFile = UINT64_MAX - 42; 60 RTTESTI_CHECK_RC(rc = RTFile GetSize(hFile, &cbFile), VINF_SUCCESS);60 RTTESTI_CHECK_RC(rc = RTFileQuerySize(hFile, &cbFile), VINF_SUCCESS); 61 61 if (RT_SUCCESS(rc)) 62 62 { … … 73 73 { 74 74 RTTEST hTest; 75 int rc = RTTestInitAndCreate("tstRTFile GetSize-1", &hTest);75 int rc = RTTestInitAndCreate("tstRTFileQuerySize-1", &hTest); 76 76 if (rc) 77 77 return rc; -
trunk/src/VBox/Runtime/testcase/tstRTFilesystem.cpp
r76553 r80585 60 60 uint64_t cbFs = 0; 61 61 62 rc = RTVfsFile GetSize(hVfsFile, &cbFs);62 rc = RTVfsFileQuerySize(hVfsFile, &cbFs); 63 63 if (RT_FAILURE(rc)) 64 64 { 65 RTTestIFailed("RTVfsFile GetSize -> %Rrc", rc);65 RTTestIFailed("RTVfsFileQuerySize -> %Rrc", rc); 66 66 return rc; 67 67 }
Note:
See TracChangeset
for help on using the changeset viewer.