Changeset 2116 for box/trunk/test/bbackupd/testbbackupd.cpp
- Timestamp:
- 28/03/2008 22:59:28 (4 years ago)
- Location:
- box/trunk
- Files:
-
- 2 edited
-
. (modified) (1 prop)
-
test/bbackupd/testbbackupd.cpp (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
box/trunk
- Property svn:ignore
-
old new 11 11 release 12 12 runtest.pl 13 .hg
-
- Property svn:ignore
-
box/trunk/test/bbackupd/testbbackupd.cpp
r2107 r2116 515 515 // connect and log in 516 516 SocketStreamTLS conn; 517 conn.Open(context, Socket::TypeINET, "localhost", BOX_PORT_BBSTORED); 517 conn.Open(context, Socket::TypeINET, "localhost", 518 22011); 518 519 BackupProtocolClient protocol(conn); 519 520 protocol.QueryVersion(BACKUP_STORE_SERVER_VERSION); … … 608 609 { 609 610 sSocket.Open(rContext, Socket::TypeINET, 610 "localhost", BOX_PORT_BBSTORED);611 "localhost", 22011); 611 612 std::auto_ptr<BackupProtocolClient> connection; 612 613 connection.reset(new BackupProtocolClient(sSocket)); … … 2560 2561 == Restore_TargetExists); 2561 2562 2562 // Make sure you can't restore to a nonexistant path2563 printf("Try to restore to a path that doesn't exist\n");2564 TEST_THAT(BackupClientRestore(*client, restoredirid,2565 "testfiles/no-such-path/subdir",2566 true /* print progress dots */)2567 == Restore_TargetPathNotFound);2568 2569 2563 // Find ID of the deleted directory 2570 2564 deldirid = GetDirID(*client, "x1", restoredirid); … … 2578 2572 true /* deleted files */) 2579 2573 == Restore_Complete); 2574 2575 // Make sure you can't restore to a nonexistant path 2576 printf("\n\n==== Try to restore to a path " 2577 "that doesn't exist\n"); 2578 fflush(stdout); 2579 TEST_THAT(BackupClientRestore(*client, restoredirid, 2580 "testfiles/no-such-path/subdir", 2581 true /* print progress dots */) 2582 == Restore_TargetPathNotFound); 2580 2583 2581 2584 // Log out
Note: See TracChangeset
for help on using the changeset viewer.
