X-Git-Url: https://git.reactos.org/?p=reactos.git;a=blobdiff_plain;f=rostests%2Frosautotest%2FCConfiguration.cpp;h=96d3e851265cd17f864f250ff53e29bda258678b;hp=2eb3799a8d33def71df4ffcd077c9cd96ad0551e;hb=99126ff14b375b630487e8edbfcea3420129e6f4;hpb=1d174e03c23da12ebf2ebf47985368e767652341 diff --git a/rostests/rosautotest/CConfiguration.cpp b/rostests/rosautotest/CConfiguration.cpp index 2eb3799a8d3..96d3e851265 100644 --- a/rostests/rosautotest/CConfiguration.cpp +++ b/rostests/rosautotest/CConfiguration.cpp @@ -17,17 +17,22 @@ typedef void (WINAPI *GETSYSINFO)(LPSYSTEM_INFO); */ CConfiguration::CConfiguration() : m_CrashRecovery(false), + m_IsInteractive(false), m_PrintToConsole(true), m_Shutdown(false), m_Submit(false) { WCHAR WindowsDirectory[MAX_PATH]; + WCHAR Interactive[32]; /* Check if we are running under ReactOS from the SystemRoot directory */ if(!GetWindowsDirectoryW(WindowsDirectory, MAX_PATH)) FATAL("GetWindowsDirectoryW failed"); m_IsReactOS = !_wcsnicmp(&WindowsDirectory[3], L"reactos", 7); + + if(GetEnvironmentVariableW(L"WINETEST_INTERACTIVE", Interactive, _countof(Interactive))) + m_IsInteractive = _wtoi(Interactive); } /**