@@ -42,24 +42,28 @@ BOOST_AUTO_TEST_CASE(flatfile_open)
4242 size_t pos1 = 0 ;
4343 size_t pos2 = pos1 + GetSerializeSize (line1);
4444
45+ fprintf (stderr, " AAAAA flatfile_open(): 01\n " );
4546 // Write first line to file.
4647 {
4748 AutoFile file{seq.Open (FlatFilePos (0 , pos1))};
4849 file << LIMITED_STRING (line1, 256 );
4950 }
5051
52+ fprintf (stderr, " AAAAA flatfile_open(): 02\n " );
5153 // Attempt to append to file opened in read-only mode.
5254 {
5355 AutoFile file{seq.Open (FlatFilePos (0 , pos2), true )};
5456 BOOST_CHECK_THROW (file << LIMITED_STRING (line2, 256 ), std::ios_base::failure);
5557 }
5658
59+ fprintf (stderr, " AAAAA flatfile_open(): 03\n " );
5760 // Append second line to file.
5861 {
5962 AutoFile file{seq.Open (FlatFilePos (0 , pos2))};
6063 file << LIMITED_STRING (line2, 256 );
6164 }
6265
66+ fprintf (stderr, " AAAAA flatfile_open(): 04\n " );
6367 // Read text from file in read-only mode.
6468 {
6569 std::string text;
@@ -72,6 +76,7 @@ BOOST_AUTO_TEST_CASE(flatfile_open)
7276 BOOST_CHECK_EQUAL (text, line2);
7377 }
7478
79+ fprintf (stderr, " AAAAA flatfile_open(): 05\n " );
7580 // Read text from file with position offset.
7681 {
7782 std::string text;
@@ -81,6 +86,7 @@ BOOST_AUTO_TEST_CASE(flatfile_open)
8186 BOOST_CHECK_EQUAL (text, line2);
8287 }
8388
89+ fprintf (stderr, " AAAAA flatfile_open(): 06\n " );
8490 // Ensure another file in the sequence has no data.
8591 {
8692 std::string text;
0 commit comments