From: Toni Wilen Date: Sat, 29 Feb 2020 19:44:23 +0000 (+0200) Subject: Handle test names with identical names (ini section would have | appended... X-Git-Tag: 4400~110 X-Git-Url: https://git.unchartedbackwaters.co.uk/w/?a=commitdiff_plain;h=a6c2904de7c23d879305dce807c8d714882b299c;p=francis%2Fwinuae.git Handle test names with identical names (ini section would have | appended) but different CPU. --- diff --git a/cputest.cpp b/cputest.cpp index bddf2d64..16c5aed4 100644 --- a/cputest.cpp +++ b/cputest.cpp @@ -5408,7 +5408,13 @@ int __cdecl main(int argc, char *argv[]) break; if (!_tcsnicmp(section, _T("test="), 5)) { _tcscpy(sptr, section); - if (!test(ini, sections, section + 5)) + TCHAR testname[1000]; + _tcscpy(testname, section + 5); + const TCHAR *p = _tcschr(testname, '|'); + if (p) { + testname[p - testname] = 0; + } + if (!test(ini, sections, testname)) break; } idx++;