summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorThiago Macieira <thiago.macieira@nokia.com>2010-08-24 21:22:13 (GMT)
committerThiago Macieira <thiago.macieira@nokia.com>2010-08-24 21:22:39 (GMT)
commited1fecfe6b7ce370184ef4dfb421fb387807633b (patch)
treee6b4dd1501bece1e122a53721f10f7b38ae511ff /tests
parentd8cd04e97540ac1c048a35ad54c8c6337d639ca1 (diff)
downloadQt-ed1fecfe6b7ce370184ef4dfb421fb387807633b.zip
Qt-ed1fecfe6b7ce370184ef4dfb421fb387807633b.tar.gz
Qt-ed1fecfe6b7ce370184ef4dfb421fb387807633b.tar.bz2
Add the missing license headers to the QString benchmark data
Diffstat (limited to 'tests')
-rw-r--r--tests/auto/headers/tst_headers.cpp3
-rw-r--r--tests/benchmarks/corelib/tools/qstring/data.cpp1
-rw-r--r--tests/benchmarks/corelib/tools/qstring/data.h41
-rw-r--r--tests/benchmarks/corelib/tools/qstring/generatelist.pl3
4 files changed, 46 insertions, 2 deletions
diff --git a/tests/auto/headers/tst_headers.cpp b/tests/auto/headers/tst_headers.cpp
index 06c70f9..7ccf058 100644
--- a/tests/auto/headers/tst_headers.cpp
+++ b/tests/auto/headers/tst_headers.cpp
@@ -213,7 +213,8 @@ void tst_Headers::licenseCheck()
return;
if (content.first().contains("generated")) {
- content.takeFirst();
+ // don't scan generated files
+ return;
}
if (sourceFile.endsWith("/tests/auto/linguist/lupdate/testdata/good/merge_ordering/foo.cpp")
diff --git a/tests/benchmarks/corelib/tools/qstring/data.cpp b/tests/benchmarks/corelib/tools/qstring/data.cpp
index 89f50d0..6d1a069 100644
--- a/tests/benchmarks/corelib/tools/qstring/data.cpp
+++ b/tests/benchmarks/corelib/tools/qstring/data.cpp
@@ -1,3 +1,4 @@
+// This is a generated file - DO NOT EDIT
static const ushort stringCollectionData[] __attribute__((aligned(16))) = {
// #0
65535,
diff --git a/tests/benchmarks/corelib/tools/qstring/data.h b/tests/benchmarks/corelib/tools/qstring/data.h
index a23dae3..c7a7467 100644
--- a/tests/benchmarks/corelib/tools/qstring/data.h
+++ b/tests/benchmarks/corelib/tools/qstring/data.h
@@ -1,3 +1,44 @@
+/****************************************************************************
+**
+** Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies).
+** All rights reserved.
+** Contact: Nokia Corporation (qt-info@nokia.com)
+**
+** This file is part of the test suite of the Qt Toolkit.
+**
+** $QT_BEGIN_LICENSE:LGPL$
+** No Commercial Usage
+** This file contains pre-release code and may not be distributed.
+** You may use this file in accordance with the terms and conditions
+** contained in the Technology Preview License Agreement accompanying
+** this package.
+**
+** GNU Lesser General Public License Usage
+** Alternatively, this file may be used under the terms of the GNU Lesser
+** General Public License version 2.1 as published by the Free Software
+** Foundation and appearing in the file LICENSE.LGPL included in the
+** packaging of this file. Please review the following information to
+** ensure the GNU Lesser General Public License version 2.1 requirements
+** will be met: http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html.
+**
+** In addition, as a special exception, Nokia gives you certain additional
+** rights. These rights are described in the Nokia Qt LGPL Exception
+** version 1.1, included in the file LGPL_EXCEPTION.txt in this package.
+**
+** If you have questions regarding the use of this file, please contact
+** Nokia at qt-info@nokia.com.
+**
+**
+**
+**
+**
+**
+**
+**
+** $QT_END_LICENSE$
+**
+****************************************************************************/
+
#include <qglobal.h>
struct StringCollection
diff --git a/tests/benchmarks/corelib/tools/qstring/generatelist.pl b/tests/benchmarks/corelib/tools/qstring/generatelist.pl
index 2777329..d027adb 100644
--- a/tests/benchmarks/corelib/tools/qstring/generatelist.pl
+++ b/tests/benchmarks/corelib/tools/qstring/generatelist.pl
@@ -105,7 +105,8 @@ sub printUshortArray($$$) {
print "#include \"data.h\"\n\n";
-print "const ushort stringCollectionData[] __attribute__((aligned(64))) = { \n";
+print "// This is a generated file - DO NOT EDIT\n";
+print "const ushort stringCollectionData[] __attribute__((aligned(64))) = {\n";
$count = 0;
$offset = 0;
$totalsize = 0;