mirror of
https://github.com/ApfelTeeSaft/reactos.git
synced 2026-08-26 19:33:31 +00:00
[ROSAUTOTEST] Handle test executable names that don't have an underscore
This removes the need for the trailing underscore in "kmtest_.exe"
This commit is contained in:
@@ -279,10 +279,10 @@ CWineTest::GetNextTestInfo()
|
||||
|
||||
if(UnderscorePosition == m_CurrentFile.npos)
|
||||
{
|
||||
stringstream ss;
|
||||
|
||||
ss << "Invalid test file name: " << UnicodeToAscii(m_CurrentFile) << endl;
|
||||
SSEXCEPTION;
|
||||
/* Use the entire name (without .exe extendion) */
|
||||
UnderscorePosition = m_CurrentFile.find_first_of('.');
|
||||
if(UnderscorePosition == m_CurrentFile.npos)
|
||||
UnderscorePosition = m_CurrentFile.length();
|
||||
}
|
||||
|
||||
TestInfo->Module = UnicodeToAscii(m_CurrentFile.substr(0, UnderscorePosition));
|
||||
|
||||
Reference in New Issue
Block a user