eg if you build in a vm that doesnt have a display and intend to run bitcoin-qt on another host (or just intend to build bitcoind, but have qt installed and so build bitcoin-qt), make check raise()s in test_bitcoin-qt. This should likely be a warning instead.
#if defined(HAVE_CONFIG_H)
#include "config/bitcoin-config.h"
#endif
#include "chainparams.h"
#include "rpcnestedtests.h"
#include "util.h"
#include "uritests.h"
#include "compattests.h"
#ifdef ENABLE_WALLET
#include "paymentservertests.h"
#include "wallettests.h"
#endif
#include <QApplication>