]> git.unchartedbackwaters.co.uk Git - francis/winuae.git/commitdiff
Handle test names with identical names (ini section would have |<value> appended...
authorToni Wilen <twilen@winuae.net>
Sat, 29 Feb 2020 19:44:23 +0000 (21:44 +0200)
committerToni Wilen <twilen@winuae.net>
Sat, 29 Feb 2020 19:44:23 +0000 (21:44 +0200)
cputest.cpp

index bddf2d6450b5a250a76ebf650ac62886c9faba97..16c5aed4682579c84c269910fe7f4d66bac388f1 100644 (file)
@@ -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++;