diff options
author | Qt CI Bot <qt_ci_bot@qt-project.org> | 2021-04-12 19:28:28 +0000 |
---|---|---|
committer | Qt CI Bot <qt_ci_bot@qt-project.org> | 2021-04-12 19:28:28 +0000 |
commit | fc0255ddc946901b45d4edae662ae213ef85fa9f (patch) | |
tree | 530c2aa1e88f2fcd4eec4e77fd606b7a8aed5fe5 /tests | |
parent | a91728b4e8541bd9747de8c2178a5a7cbddbe9c9 (diff) | |
parent | c62a193ca38a7574325f7a66a1014c683d735a34 (diff) |
Merge integration refs/builds/qtci/dev/1618248052
Diffstat (limited to 'tests')
-rw-r--r-- | tests/libfuzzer/corelib/time/qdatetime/fromstring/main.cpp | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/tests/libfuzzer/corelib/time/qdatetime/fromstring/main.cpp b/tests/libfuzzer/corelib/time/qdatetime/fromstring/main.cpp index e41301bb55..688bd3c24b 100644 --- a/tests/libfuzzer/corelib/time/qdatetime/fromstring/main.cpp +++ b/tests/libfuzzer/corelib/time/qdatetime/fromstring/main.cpp @@ -28,6 +28,12 @@ #include <QDateTime> +// Enable to report the currently used format, e.g. when reproducing issues +// #define LOG_FORMAT +#ifdef LOG_FORMAT +#include <QDebug> +#endif + static const QString formats[] = { QStringLiteral("h"), QStringLiteral("hh"), @@ -94,6 +100,9 @@ extern "C" int LLVMFuzzerTestOneInput(const char *Data, size_t Size) QDateTime::fromString(userString, Qt::ISODateWithMs); for (const auto &format : formats) { + #ifdef LOG_FORMAT + qDebug() << "Trying format:" << format; + #endif QDateTime::fromString(userString, format); } return 0; |