Minor cosmetic changes. Also replaced system call with use of std::cin.get.

git-svn-id: svn://svn.code.sf.net/p/loki-lib/code/trunk@1134 7ec92016-0320-0410-acc4-a06ded1c099a
This commit is contained in:
rich_sposato 2011-10-03 05:05:41 +00:00
parent 6568cc4a3a
commit 9fe637bf8b

View file

@ -28,9 +28,9 @@
#include <cstdlib>
#include <iostream>
using namespace ::std;
#include <iostream>
using namespace ::std;
extern bool TestThreadLocalClassStaticValue( void );
@ -45,34 +45,36 @@ int main( int argc, const char * const argv[] )
{
(void)argc;
(void)argv;
bool okay = true;
cout << "Starting ThreadLocal tests." << endl;
cout << "If any tests fail, or any assertions fail," << endl
cout << "Starting ThreadLocal tests." << endl;
cout << "If any tests fail, or any assertions fail," << endl
<< "then your compiler does not implement thread_local storage correctly." << endl;
cout << endl << "Testing static thread_local storage inside classes." << endl;
okay = TestThreadLocalClassStaticValue();
if ( okay )
cout << "Your compiler correctly implements thread_local storage for class static values." << endl;
else
cout << "Your compiler does not properly implement thread_local storage for class static values." << endl;
cout << endl << "Testing static thread_local storage inside classes." << endl;
okay = TestThreadLocalClassStaticValue();
if ( okay )
cout << "Your compiler correctly implements thread_local storage for class static values." << endl;
else
cout << "Your compiler does not properly implement thread_local storage for class static values." << endl;
cout << endl << "Testing static thread_local storage inside functions." << endl;
okay = TestThreadLocalFunctionStaticValue();
if ( okay )
cout << "Your compiler correctly implements thread_local storage for function static values." << endl;
else
cout << "Your compiler does not properly implement thread_local storage for function static values." << endl;
cout << endl << "Testing standalone static thread_local storage." << endl;
okay = TestThreadLocalStaticValue();
if ( okay )
cout << "Your compiler correctly implements thread_local storage for standalone static values." << endl;
else
cout << "Your compiler does not properly implement thread_local storage for standalone static values." << endl;
::system( "pause" );
cout << endl << "Testing standalone static thread_local storage." << endl;
okay = TestThreadLocalStaticValue();
if ( okay )
cout << "Your compiler correctly implements thread_local storage for standalone static values." << endl;
else
cout << "Your compiler does not properly implement thread_local storage for standalone static values." << endl;
::std::cout << "Please press enter key to continue." << ::std::endl;
::std::cin.get();
return 0;
}