# HG changeset patch # User jld # Date 1361435650 0 # Node ID f5d2adaa8595a83b785a80e905052ebcf2ee864c # Parent 5e8c9e64b5b0b81e186388b4b0b7690b3a5790e8 * src/fstream.cpp: Fix processing of fstream openmode. Patch from uSTL HEAD. * cdl/ustl.cdl: Build interactive tests under control of a CDL option. Build ROM filesystem for bvt25 test under control of a CDL option. * tests/bvt25.cpp: Use ROM filesystem if available. * tests/bvt05.cpp, tests/bvt16.cpp: Reduce data structure sizes for embedded use. diff --git a/packages/language/cxx/ustl/current/ChangeLog b/packages/language/cxx/ustl/current/ChangeLog --- a/packages/language/cxx/ustl/current/ChangeLog +++ b/packages/language/cxx/ustl/current/ChangeLog @@ -1,3 +1,14 @@ +2013-02-18 John Dallaway + + * src/fstream.cpp: Fix processing of fstream openmode. Patch + from uSTL HEAD. + * cdl/ustl.cdl: Build interactive tests under control of a CDL + option. Build ROM filesystem for bvt25 test under control of a + CDL option. + * tests/bvt25.cpp: Use ROM filesystem if available. + * tests/bvt05.cpp, tests/bvt16.cpp: Reduce data structure sizes + for embedded use. + 2012-03-24 Sergei Gavrikov * include/*: @@ -56,7 +67,7 @@ 2009-08-20 Uwe Kindler /include/cyg/ustl/bvt25fs_be.h : /tests/bvt25.std + @mkdir -p bvt25_be + @cp $< bvt25_be/$(/include/cyg/ustl/bvt25fs_le.h : /tests/bvt25.std + @mkdir -p bvt25_le + @cp $< bvt25_le/$( (64083, 0x41); - cout << "fill 64083 uint16_t(0x4142) "; - TestBigFill (64083, 0x4142); - cout << "fill 64083 uint32_t(0x41424344) "; - TestBigFill (64083, 0x41424344); - cout << "fill 64083 float(0.4242) "; - TestBigFill (64083, 0x4242f); + cout << "fill 3207 uint8_t(0x41) "; + TestBigFill (3207, 0x41); + cout << "fill 3207 uint16_t(0x4142) "; + TestBigFill (3207, 0x4142); + cout << "fill 3207 uint32_t(0x41424344) "; + TestBigFill (3207, 0x41424344); + cout << "fill 3207 float(0.4242) "; + TestBigFill (3207, 0x4242f); #if HAVE_INT64_T - cout << "fill 64083 uint64_t(0x4142434445464748) "; - TestBigFill (64083, UINT64_C(0x4142434445464748)); + cout << "fill 3207 uint64_t(0x4142434445464748) "; + TestBigFill (3207, UINT64_C(0x4142434445464748)); #else cout << "No 64bit types available on this platform\n"; #endif - cout << "copy 64083 uint8_t(0x41) "; - TestBigCopy (64083, 0x41); - cout << "copy 64083 uint16_t(0x4142) "; - TestBigCopy (64083, 0x4142); - cout << "copy 64083 uint32_t(0x41424344) "; - TestBigCopy (64083, 0x41424344); - cout << "copy 64083 float(0.4242) "; - TestBigCopy (64083, 0.4242f); + cout << "copy 3207 uint8_t(0x41) "; + TestBigCopy (3207, 0x41); + cout << "copy 3207 uint16_t(0x4142) "; + TestBigCopy (3207, 0x4142); + cout << "copy 3207 uint32_t(0x41424344) "; + TestBigCopy (3207, 0x41424344); + cout << "copy 3207 float(0.4242) "; + TestBigCopy (3207, 0.4242f); #if HAVE_INT64_T - cout << "copy 64083 uint64_t(0x4142434445464748) "; - TestBigCopy (64083, UINT64_C(0x4142434445464748)); + cout << "copy 3207 uint64_t(0x4142434445464748) "; + TestBigCopy (3207, UINT64_C(0x4142434445464748)); #else cout << "No 64bit types available on this platform\n"; #endif diff --git a/packages/language/cxx/ustl/current/tests/bvt16.cpp b/packages/language/cxx/ustl/current/tests/bvt16.cpp --- a/packages/language/cxx/ustl/current/tests/bvt16.cpp +++ b/packages/language/cxx/ustl/current/tests/bvt16.cpp @@ -22,7 +22,7 @@ void TestUTF8 (void) { cout << "Generating Unicode characters "; vector srcChars; - srcChars.resize (0xFFFF); + srcChars.resize (0xFFF); iota (srcChars.begin(), srcChars.end(), 0); cout.format ("%zu - %zu\n", size_t(srcChars[0]), size_t(srcChars.back())); diff --git a/packages/language/cxx/ustl/current/tests/bvt25.cpp b/packages/language/cxx/ustl/current/tests/bvt25.cpp --- a/packages/language/cxx/ustl/current/tests/bvt25.cpp +++ b/packages/language/cxx/ustl/current/tests/bvt25.cpp @@ -5,6 +5,16 @@ #include "stdtest.h" +#ifdef CYGIMP_USTL_TESTS_BVT25_ROMFS +# include +# if (CYG_BYTEORDER == CYG_LSBFIRST) +# include +# else +# include +# endif +MTAB_ENTRY(romfs_mte1, "/", "romfs", "", (CYG_ADDRWORD) &filedata[0]); +#endif + void TestFStream (void) { fstream fs ("bvt/bvt25.std", ios::in | ios::nocreate);