set the locale for the tests to be the system locale

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@39536 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Richard Frith-MacDonald 2016-03-14 07:24:00 +00:00
parent 34ad8bb0a5
commit f32f5c6f84

View file

@ -56,10 +56,14 @@ int main()
PASS_EQUAL(str, @"NaN", "notANumber special case")
START_SET("NSLocale")
NSLocale *sys;
if (!NSLOCALE_SUPPORTED)
SKIP("NSLocale not supported\nThe ICU library was not available when GNUstep-base was built")
PASS([fmt getObjectValue: &num forString: @"0.00" errorDescription: nil]
sys = [NSLocale systemLocale];
[fmt setLocale: sys];
PASS([fmt getObjectValue: &num forString: @"0.00" errorDescription: 0]
&& num != nil, "formatting suceeded")
if (testPassed)
{