Improve project files of libfuzzer tests

Change-Id: I7977beb1bbc142326a3cc48435b91ec7293e2cff
Reviewed-by: Edward Welbourne <edward.welbourne@qt.io>
This commit is contained in:
Robert Loehning 2019-03-11 13:37:29 +01:00
parent fed9fa1714
commit eb25acc05b
3 changed files with 6 additions and 5 deletions

View File

@ -12,7 +12,9 @@ data which triggered the crash. You can then use this to debug and fix the calle
To run a test with libFuzzer: To run a test with libFuzzer:
1. Install libFuzzer, e.g. from the repositories of the Linux distribution you are using. 1. Install clang 5.0 or later, e.g. from the repositories of the Linux distribution you are using.
Depending on the version of clang and the source you are installing from, you might have to
install libFuzzer for this version of clang explicitly.
2. Make sure clang and clang++ from this version of clang are found in PATH. 2. Make sure clang and clang++ from this version of clang are found in PATH.
3. Configure Qt with 3. Configure Qt with
-platform linux-clang -coverage trace-pc-guard -platform linux-clang -coverage trace-pc-guard

View File

@ -1,5 +1,5 @@
QT -= gui QT -= gui
CONFIG += c++11 console CONFIG += console
CONFIG -= app_bundle CONFIG -= app_bundle
SOURCES += main.cpp SOURCES += main.cpp
LIBS += -lFuzzer LIBS += -fsanitize=fuzzer

View File

@ -1,4 +1,3 @@
QT += widgets QT += widgets
CONFIG += c++11
SOURCES += main.cpp SOURCES += main.cpp
LIBS += -lFuzzer LIBS += -fsanitize=fuzzer