summaryrefslogtreecommitdiffstats
path: root/tests/benchmarks
diff options
context:
space:
mode:
authorHarald Fernengel <harald.fernengel@nokia.com>2010-11-10 10:10:00 (GMT)
committerHarald Fernengel <harald.fernengel@nokia.com>2010-11-10 10:10:00 (GMT)
commit7e1a598296e89e498fd0c27fc0951f059d1e6ffe (patch)
tree1d6547bf95f2f93096830399469152eff96ac9dd /tests/benchmarks
parent606e15215b33b51a4bc716654388b8e9eaa647e6 (diff)
downloadQt-7e1a598296e89e498fd0c27fc0951f059d1e6ffe.zip
Qt-7e1a598296e89e498fd0c27fc0951f059d1e6ffe.tar.gz
Qt-7e1a598296e89e498fd0c27fc0951f059d1e6ffe.tar.bz2
fix tst_headers
Fix the generator and the generated file to ensure that the string "generated" appears in the first line.
Diffstat (limited to 'tests/benchmarks')
-rw-r--r--tests/benchmarks/corelib/tools/qstring/data.cpp3
-rw-r--r--tests/benchmarks/corelib/tools/qstring/generatelist.pl3
2 files changed, 4 insertions, 2 deletions
diff --git a/tests/benchmarks/corelib/tools/qstring/data.cpp b/tests/benchmarks/corelib/tools/qstring/data.cpp
index a674336..d44a796 100644
--- a/tests/benchmarks/corelib/tools/qstring/data.cpp
+++ b/tests/benchmarks/corelib/tools/qstring/data.cpp
@@ -1,6 +1,7 @@
+// This is a generated file - DO NOT EDIT
+
#include "data.h"
-// This is a generated file - DO NOT EDIT
const ushort stringCollectionData[] __attribute__((aligned(16))) = {
// #0
65535,
diff --git a/tests/benchmarks/corelib/tools/qstring/generatelist.pl b/tests/benchmarks/corelib/tools/qstring/generatelist.pl
index 8c8eb20..48a8518 100644
--- a/tests/benchmarks/corelib/tools/qstring/generatelist.pl
+++ b/tests/benchmarks/corelib/tools/qstring/generatelist.pl
@@ -103,9 +103,10 @@ sub printUshortArray($$$) {
return ($offset + $headpadding, $offset + $headpadding + $len + $tailpadding);
}
+print "// This is a generated file - DO NOT EDIT\n\n";
+
print "#include \"data.h\"\n\n";
-print "// This is a generated file - DO NOT EDIT\n";
print "const ushort stringCollectionData[] __attribute__((aligned(64))) = {\n";
$count = 0;
$offset = 0;