[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:
Timo Kreuzer
2026-07-07 11:32:08 +00:00
parent d6ac48ec5d
commit d8b075e382
+4 -4
View File
@@ -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));