Index: tests/test_runner/src/test_runner.cpp =================================================================== diff -u -N -rb712554e2b3602ce7242c7ff1cd7745b03378440 -ra4635addad389b9e117679437a3e1b64a739ea96 --- tests/test_runner/src/test_runner.cpp (.../test_runner.cpp) (revision b712554e2b3602ce7242c7ff1cd7745b03378440) +++ tests/test_runner/src/test_runner.cpp (.../test_runner.cpp) (revision a4635addad389b9e117679437a3e1b64a739ea96) @@ -1,39 +1,39 @@ -// libchcore_test.cpp : Defines the entry point for the console application. -// - -#include "stdafx.h" - -int _tmain(int argc, _TCHAR* argv[]) -{ - using std::wcout; - using std::endl; - - if(argc < 2) - { - wcout << _T("Usage: TestRunner.exe ") << endl; - return 1; - } - - PCTSTR pszLibName = argv[1]; - - wcout << _T("Executing tests in: ") << pszLibName << endl; - - HMODULE module = LoadLibrary(pszLibName); - if(module) - { - typedef int(__stdcall *pfnRunTests)(int argc, TCHAR* argv[]); - - pfnRunTests pfnFunc = (pfnRunTests)::GetProcAddress(module, "_RunTests@8"); - if(!pfnFunc) - pfnFunc = (pfnRunTests)::GetProcAddress(module, "RunTests"); - if(pfnFunc) - return pfnFunc(argc, argv); - else - { - DWORD dwErr = GetLastError(); - wcout << _T("Library ") << pszLibName << _T(" does not have tests embedded. Error: ") << dwErr << endl; - } - } - else - wcout << _T("Cannot load library ") << pszLibName << endl; -} +// libchcore_test.cpp : Defines the entry point for the console application. +// + +#include "stdafx.h" + +int _tmain(int argc, _TCHAR* argv[]) +{ + using std::wcout; + using std::endl; + + if(argc < 2) + { + wcout << _T("Usage: TestRunner.exe ") << endl; + return 1; + } + + PCTSTR pszLibName = argv[1]; + + wcout << _T("Executing tests in: ") << pszLibName << endl; + + HMODULE module = LoadLibrary(pszLibName); + if(module) + { + typedef int(__stdcall *pfnRunTests)(int argc, TCHAR* argv[]); + + pfnRunTests pfnFunc = (pfnRunTests)::GetProcAddress(module, "_RunTests@8"); + if(!pfnFunc) + pfnFunc = (pfnRunTests)::GetProcAddress(module, "RunTests"); + if(pfnFunc) + return pfnFunc(argc, argv); + else + { + DWORD dwErr = GetLastError(); + wcout << _T("Library ") << pszLibName << _T(" does not have tests embedded. Error: ") << dwErr << endl; + } + } + else + wcout << _T("Cannot load library ") << pszLibName << endl; +}