Changeset 1922
- Timestamp:
- 04/11/2007 21:38:58 (4 years ago)
- File:
-
- 1 edited
-
box/trunk/test/backupstore/testbackupstore.cpp (modified) (11 diffs)
Legend:
- Unmodified
- Added
- Removed
-
box/trunk/test/backupstore/testbackupstore.cpp
r1494 r1922 1212 1212 TEST_THAT(dir.GetAttributes() == attr); 1213 1213 } 1214 1214 1215 // Check that we don't get attributes if we don't ask for them 1215 1216 { … … 1225 1226 TEST_THAT(!dir.HasAttributes()); 1226 1227 } 1228 1229 // sleep to ensure that the timestamp on the file will change 1230 ::safe_sleep(1); 1231 1227 1232 // Change attributes on the directory 1228 1233 { … … 1263 1268 TEST_THAT(rep->GetObjectID() == uploads[UPLOAD_FILE_TO_MOVE].allocated_objid); 1264 1269 } 1270 1265 1271 // Try some dodgy renames 1266 1272 { … … 1275 1281 ConnectionException, Conn_Protocol_UnexpectedReply); 1276 1282 } 1283 1284 // sleep to ensure that the timestamp on the file will change 1285 ::safe_sleep(1); 1286 1277 1287 // Rename within a directory 1278 1288 { … … 1282 1292 subdirid, BackupProtocolClientMoveObject::Flags_MoveAllWithSameName, newName); 1283 1293 } 1294 1284 1295 // Check it's all gone from the root directory... 1285 1296 { … … 1301 1312 } 1302 1313 } 1314 1303 1315 // Check the old and new versions are in the other directory 1304 1316 { … … 1330 1342 TEST_THAT(foundOld); 1331 1343 } 1344 1332 1345 // make a little bit more of a thing to look at 1333 1346 int64_t subsubdirid = 0; … … 1353 1366 subsubfileid = stored->GetObjectID(); 1354 1367 } 1368 1355 1369 // Query names -- test that invalid stuff returns not found OK 1356 1370 { … … 1370 1384 TEST_THAT(nameRep->GetNumNameElements() == 0); 1371 1385 } 1386 1372 1387 // Query names... first, get info for the file 1373 1388 { … … 1387 1402 } 1388 1403 } 1404 1389 1405 // Query names... secondly, for the directory 1390 1406 { … … 1686 1702 // First, try logging in without an account having been created... just make sure login fails. 1687 1703 1688 int pid = LaunchServer(BBSTORED " testfiles/bbstored.conf", 1689 "testfiles/bbstored.pid"); 1704 std::string cmd = BBSTORED " " + bbstored_args + 1705 " testfiles/bbstored.conf"; 1706 int pid = LaunchServer(cmd.c_str(), "testfiles/bbstored.pid"); 1690 1707 1691 1708 TEST_THAT(pid != -1 && pid != 0);
Note: See TracChangeset
for help on using the changeset viewer.
