disable test which doesn't work without setenv()
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_8_BRANCH@54659 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -58,6 +58,12 @@ void CrtTestCase::SetGetEnv()
|
||||
wxSetEnv(_T("TESTVAR"), _T("something else"));
|
||||
CPPUNIT_ASSERT( wxGetEnv(_T("TESTVAR"), &val) );
|
||||
CPPUNIT_ASSERT( val == _T("something else") );
|
||||
|
||||
// this test doesn't work under Unix systems without setenv(): putenv() can
|
||||
// only be used to add or modify environment variables but not to unset
|
||||
// them
|
||||
#if !defined(__UNIX__) || defined(HAVE_SETENV)
|
||||
CPPUNIT_ASSERT( wxUnsetEnv(_T("TESTVAR")) );
|
||||
CPPUNIT_ASSERT( wxGetEnv(_T("TESTVAR"), NULL) == false );
|
||||
#endif
|
||||
}
|
||||
|
Reference in New Issue
Block a user