From a6c2904de7c23d879305dce807c8d714882b299c Mon Sep 17 00:00:00 2001 From: Toni Wilen Date: Sat, 29 Feb 2020 21:44:23 +0200 Subject: [PATCH] Handle test names with identical names (ini section would have | appended) but different CPU. --- cputest.cpp | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) 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++; -- 2.47.3