Fuzzing: ignore logging output from QColorSpace

Change-Id: Ica549be24c8873854934f4ba24f2b3f7cb077e25
Reviewed-by: Allan Sandfeld Jensen <allan.jensen@qt.io>
This commit is contained in:
Robert Loehning 2020-03-23 22:05:02 +01:00
parent cd57dae62f
commit f5a58cccc2

View File

@ -26,14 +26,16 @@
**
****************************************************************************/
#include <cstdlib>
#include <QGuiApplication>
#include <QColorSpace>
// Run this with
// QT_LOGGING_RULES="qt.gui.icc=false"
// to reduce noise and increase speed.
extern "C" int LLVMFuzzerTestOneInput(const char *data, size_t size) {
// to reduce noise and increase speed
static char quiet[] = "QT_LOGGING_RULES=qt.gui.icc=false";
static int pe = putenv(quiet);
Q_UNUSED(pe)
static int argc = 3;
static char arg1[] = "fuzzer";
static char arg2[] = "-platform";