incubator-stdcxx-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Travis Vitek" <tvi...@quovadx.com>
Subject [PATCH] Update tests 22.locale.[money,num,time].put.mt.cpp to validate results [take 3]
Date Tue, 14 Aug 2007 21:57:38 GMT
Attached is a patch to enhance the money_put, num_put and time_put facet mt
tests. Threads verify that the values put compare equal to those put in the
primary thread. Also includes change to rw_locale() so that the C
locale can always appear at the front of the locale list.

2007-08-14	Travis Vitek	<vitek@roguewave.com>

	* rw_locale.h(rw_locales): Added new parameter to indicate the
	"C" locale should appear at the front of returned locale list.
	* locale.cpp(rw_locales): Added support for new parameter.
	* testdefs.h: Added convenience macro RW_COUNT_OF that can be used
	to get the number of elements in an array.
	* 22.locale.money.put.mt.cpp(MyIos, MyStreambuf, MyMoneyData):
	Added structures to simplify testing.
	(run_test): Build a table of in/outptus for verification in test
	threads.
	(thread_func): Assert the data written matches expected.
	(main): Add support for --nlocales and --shared-locale command
	line arguments
	* 22.locale.num.put.mt.cpp(MyIos, MyStreambuf, MyNumData): Added
	Added structures to simplify testing.
	(run_test): Build a table of in/outptus for verification in test
	threads.
	(thread_func): Assert the data written matches expected.
	(main): Add support for --nlocales and --shared-locale command
	line arguments
	* 22.locale.time.put.mt.cpp(run_test, thread_func): Use macro
	RW_COUNT_OF. Remove "C" locale fallback. Eliminate unnecessary
	rdbuf() calls.

Mime
View raw message