diff --git a/test/cfg/runtests.sh b/test/cfg/runtests.sh index 7a251223a..fa5348616 100755 --- a/test/cfg/runtests.sh +++ b/test/cfg/runtests.sh @@ -53,7 +53,7 @@ if [ $WXCONFIG_RETURNCODE -ne 0 ]; then echo "wx-config does not work, skipping syntax check for wxWidgets tests." else set +e - echo -e "#include \n#include \n#include \n" | ${CXX} ${CXX_OPT} ${WXCONFIG} -x c++ - + echo -e "#include \n#include \n#include \n#include \n#if wxVERSION_NUMBER<2950\n#error \"Old version\"\n#endif" | ${CXX} ${CXX_OPT} ${WXCONFIG} -x c++ - WXCHECK_RETURNCODE=$? set -e if [ $WXCHECK_RETURNCODE -ne 0 ]; then