[Box Backup-dev] Unit tests

Chris Wilson boxbackup-dev@fluffy.co.uk
Sun, 14 Jan 2007 16:56:16 +0000 (GMT)


Hi Ben,

I'm debugging testbackupstorefix on Darwin, and found something I can't 
explain, I hope you can help.

testbackupstorefix.cpp line 472 says:

         // Delete a directory
         DeleteObject("Test1/pass/cacted/ming");
         // Delete a file
         DeleteObject("Test1/cannes/ict/scely");
         // Fix it
         RUN_CHECK
         // Check everything is as it should be
         TEST_THAT(::system(PERL_EXECUTABLE
 		"testfiles/testbackupstorefix.pl check 2") == 0);

testbackupstorefix.pl appears to expect Test1/cannes/ict/scely to be 
deleted in check 2, but not Test1/pass/cacted/ming. This fails on Darwin: 
both files are missing, but only intermittently.

Do you have any idea why the test does not expect Test1/pass/cacted/ming 
to be missing, or why it sometimes is, and sometimes is not, on Darwin? 
I'm guessing that some filesystem oddity results in some processes seeing 
filesystem changes made by other processes after some delay, rather than 
immediately, but I don't have hard evidence for that yet.

Any advice gratefully appreciated.

Cheers, Chris.
-- 
_ ___ __     _
  / __/ / ,__(_)_  | Chris Wilson <0000 at qwirx.com> - Cambs UK |
/ (_/ ,\/ _/ /_ \ | Security/C/C++/Java/Perl/SQL/HTML Developer |
\ _/_/_/_//_/___/ | We are GNU-free your mind-and your software |