Changeset 2276 for box/trunk/test/bbackupd/testbbackupd.cpp
- Timestamp:
- 12/09/2008 21:39:45 (4 years ago)
- File:
-
- 1 edited
-
box/trunk/test/bbackupd/testbbackupd.cpp (modified) (12 diffs)
Legend:
- Unmodified
- Added
- Removed
-
box/trunk/test/bbackupd/testbbackupd.cpp
r2266 r2276 1231 1231 #endif // PLATFORM_CLIB_FNS_INTERCEPTION_IMPOSSIBLE 1232 1232 1233 // Check that no read error has been reported yet 1234 TEST_THAT(!TestFileExists("testfiles/notifyran.read-error.1")); 1235 1233 1236 std::string cmd = BBACKUPD " " + bbackupd_args + 1234 1237 " testfiles/bbackupd.conf"; … … 1659 1662 } 1660 1663 1664 // Check that no read error has been reported yet 1665 TEST_THAT(!TestFileExists("testfiles/notifyran.read-error.1")); 1666 1661 1667 #ifndef WIN32 // requires fork 1662 1668 printf("\n==== Testing that bbackupd responds correctly to " … … 1821 1827 DIRECTORY_SEPARATOR "link") == 0); 1822 1828 1829 // also test symlink-to-self loop does not break restore 1830 TEST_THAT(symlink("self", SYM_DIR "/self") == 0); 1831 1823 1832 ::wait_for_operation(4); 1824 1833 ::sync_and_wait(); … … 1919 1928 } 1920 1929 #endif // !WIN32 1930 1931 // Check that no read error has been reported yet 1932 TEST_THAT(!TestFileExists("testfiles/notifyran.read-error.1")); 1921 1933 1922 1934 printf("\n==== Testing that redundant locations are deleted on time\n"); … … 2024 2036 if(bbackupd_pid > 0) 2025 2037 { 2038 // Check that no read error has been reported yet 2039 TEST_THAT(!TestFileExists("testfiles/notifyran.read-error.1")); 2040 2026 2041 printf("\n==== Check that read-only directories and " 2027 2042 "their contents can be restored.\n"); … … 2384 2399 #endif // WIN32 2385 2400 2401 // Check that no read error has been reported yet 2402 TEST_THAT(!TestFileExists("testfiles/notifyran.read-error.1")); 2403 2386 2404 TEST_THAT(ServerIsAlive(bbackupd_pid)); 2387 2405 TEST_THAT(ServerIsAlive(bbstored_pid)); … … 2495 2513 } 2496 2514 } 2515 2516 // Check that no read error has been reported yet 2517 TEST_THAT(!TestFileExists("testfiles/notifyran.read-error.1")); 2497 2518 2498 2519 TEST_THAT(ServerIsAlive(bbackupd_pid)); … … 3010 3031 TestRemoteProcessMemLeaks("bbackupquery.memleaks"); 3011 3032 3033 // Check that no read error has been reported yet 3034 TEST_THAT(!TestFileExists("testfiles/notifyran.read-error.1")); 3035 3012 3036 TEST_THAT(ServerIsAlive(bbackupd_pid)); 3013 3037 TEST_THAT(ServerIsAlive(bbstored_pid)); … … 3050 3074 if (!ServerIsAlive(bbstored_pid)) return 1; 3051 3075 3076 // Check that no read error has been reported yet 3077 TEST_THAT(!TestFileExists("testfiles/notifyran.read-error.1")); 3078 3052 3079 // Check that modifying files with old timestamps 3053 3080 // still get added … … 3108 3135 if (!ServerIsAlive(bbackupd_pid)) return 1; 3109 3136 if (!ServerIsAlive(bbstored_pid)) return 1; 3137 3138 // Check that no read error has been reported yet 3139 TEST_THAT(!TestFileExists("testfiles/notifyran.read-error.1")); 3110 3140 3111 3141 // Add some files and directories which are marked as excluded … … 3195 3225 if(::getuid() != 0) 3196 3226 { 3227 // Check that the error has not been reported yet 3228 TEST_THAT(!TestFileExists("testfiles/notifyran.read-error.1")); 3229 3197 3230 // Check that read errors are reported neatly 3198 3231 printf("\n==== Add unreadable files\n"); … … 3817 3850 CloseHandle(handle); 3818 3851 wait_for_sync_end(); 3852 3853 // still no read errors? 3819 3854 TEST_THAT(!TestFileExists("testfiles/" 3820 3855 "notifyran.read-error.2"));
Note: See TracChangeset
for help on using the changeset viewer.
