diff options
author | Sergio Martins <smartins@kde.org> | 2017-02-20 23:05:40 +0000 |
---|---|---|
committer | Sergio Martins <smartins@kde.org> | 2017-02-20 23:08:28 +0000 |
commit | 17db6590f46d7459868bf54df2ff54ec64e05acd (patch) | |
tree | c511f279809346d60d16d3beea3d468433f7c802 /tests/qstring-ref | |
parent | 8b4f43913a7188f6bf4fa41d3dd845eb1f4f4641 (diff) |
qstring-ref: Add a failling unit-test for bug 376737
CCBUG: 376737
Diffstat (limited to 'tests/qstring-ref')
-rw-r--r-- | tests/qstring-ref/bug376737.cpp | 10 | ||||
-rw-r--r-- | tests/qstring-ref/bug376737.cpp.expected | 0 | ||||
-rw-r--r-- | tests/qstring-ref/config.json | 4 |
3 files changed, 14 insertions, 0 deletions
diff --git a/tests/qstring-ref/bug376737.cpp b/tests/qstring-ref/bug376737.cpp new file mode 100644 index 00000000..d6650190 --- /dev/null +++ b/tests/qstring-ref/bug376737.cpp @@ -0,0 +1,10 @@ +#include <QtCore/QString> +#include <QtCore/QObject> +#include <QtCore/QVariant> + +void test() +{ + QString line; + QObject o; + o.setProperty("size", line.mid(7).trimmed()); // OK +} diff --git a/tests/qstring-ref/bug376737.cpp.expected b/tests/qstring-ref/bug376737.cpp.expected new file mode 100644 index 00000000..e69de29b --- /dev/null +++ b/tests/qstring-ref/bug376737.cpp.expected diff --git a/tests/qstring-ref/config.json b/tests/qstring-ref/config.json index e7e6e0cb..1078349c 100644 --- a/tests/qstring-ref/config.json +++ b/tests/qstring-ref/config.json @@ -2,6 +2,10 @@ "tests" : [ { "filename" : "main.cpp" + }, + { + "filename" : "bug376737.cpp", + "expects_failure" : true } ] } |