diff --git a/test/ThreadLocal/main.cpp b/test/ThreadLocal/main.cpp index 9786aa8..ca175a3 100644 --- a/test/ThreadLocal/main.cpp +++ b/test/ThreadLocal/main.cpp @@ -28,9 +28,9 @@ #include -#include - -using namespace ::std; +#include + +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; }