# # patch "ChangeLog" # from [b4e81cc77078919495f452d3762e40df9c4d9b22] # to [3d9a978cdfca1f476c03b7ce196a3be0a3dc2bd3] # # patch "paths.cc" # from [f59d66341f75e54a1e6b2366a1c93673d04cc7cc] # to [f62a77b3ed9c5da9a101f825dd5951c517e836e3] # ======================================================================== --- ChangeLog b4e81cc77078919495f452d3762e40df9c4d9b22 +++ ChangeLog 3d9a978cdfca1f476c03b7ce196a3be0a3dc2bd3 @@ -1,5 +1,12 @@ 2005-08-25 Nathaniel Smith + * paths.cc (struct access_tracker): Doh, initializer should set + 'initialized'... + (test_file_path_internal): It's valid for a split file + to have a null component if the file is "". + +2005-08-25 Nathaniel Smith + * paths.cc (in_bookkeeping_dir): Last change didn't work out so well; let's remove some negatives and see if I can understand what the code does this way... ======================================================================== --- paths.cc f59d66341f75e54a1e6b2366a1c93673d04cc7cc +++ paths.cc f62a77b3ed9c5da9a101f825dd5951c517e836e3 @@ -27,6 +27,7 @@ { I(may_be_initialized || !initialized); I(!used); + initialized = true; value = val; } T const & get() @@ -488,9 +489,10 @@ fp.split(split_test); file_path fp2(split_test); BOOST_CHECK(fp == fp2); - for (std::vector::const_iterator i = split_test.begin(); - i != split_test.end(); ++i) - BOOST_CHECK(!null_name(*i)); + if (split_test.size() > 1) + for (std::vector::const_iterator i = split_test.begin(); + i != split_test.end(); ++i) + BOOST_CHECK(!null_name(*i)); } }