Moc Sort json file list in collectjson
This patch ensures that the list of input files are sorted before being collected. This provides consistency when comparing results generated from the CMake port which do not have the same order as qmake. Change-Id: I46e3acf7c26dfd21fd0c1196bdeddf22acbf6ba5 Reviewed-by: Ulf Hermann <ulf.hermann@qt.io>
This commit is contained in:
parent
d3814e51bb
commit
43f341a137
@ -83,7 +83,9 @@ int collectJson(const QStringList &jsonFiles, const QString &outputFile)
|
||||
}
|
||||
}
|
||||
|
||||
for (const QString &jsonFile: jsonFiles) {
|
||||
QStringList jsonFilesSorted = jsonFiles;
|
||||
jsonFilesSorted.sort();
|
||||
for (const QString &jsonFile : qAsConst(jsonFilesSorted)) {
|
||||
QFile f(jsonFile);
|
||||
if (!f.open(QIODevice::ReadOnly)) {
|
||||
fprintf(stderr, "Error opening %s for reading\n", qPrintable(jsonFile));
|
||||
|
File diff suppressed because it is too large
Load Diff
Loading…
Reference in New Issue
Block a user