diff --git a/tests/auto/debugger/README.txt b/tests/auto/debugger/README.txt index b5c151a786c..13396b9bb76 100644 --- a/tests/auto/debugger/README.txt +++ b/tests/auto/debugger/README.txt @@ -16,8 +16,11 @@ conditions by using environment variables as follows: "normal" standard library, and the "debug" version (this will add DEFINES += _GLIBCXX_DEBUG) to the .pro - (QTC_MSVC_ENV_BAT - to set up MSVC) + QTC_BOOST_INCLUDE_PATH_FOR_TEST - include path for boost libraries + only necessary if you have more than one version in different + paths installed or if a non-standard path has been used + (QTC_MSVC_ENV_BAT - to set up MSVC) The tests should be used for automated testing, but can also be used for dumper development and fixing. diff --git a/tests/auto/debugger/tst_dumpers.cpp b/tests/auto/debugger/tst_dumpers.cpp index 40378bd8401..09fcae55f0b 100644 --- a/tests/auto/debugger/tst_dumpers.cpp +++ b/tests/auto/debugger/tst_dumpers.cpp @@ -608,8 +608,14 @@ struct Cxx11Profile : public Profile struct BoostProfile : public Profile { BoostProfile() - : Profile("macx:INCLUDEPATH += /usr/local/include") - {} + : Profile(QByteArray()) + { + const QByteArray &boostIncPath = qgetenv("QTC_BOOST_INCLUDE_PATH_FOR_TEST"); + if (!boostIncPath.isEmpty()) + contents = QByteArray("INCLUDEPATH += ") + boostIncPath.constData(); + else + contents = "macx:INCLUDEPATH += /usr/local/include"; + } }; struct MacLibCppProfile : public Profile