From f35f55091d985b1285af8530267de3bd3bcc1073 Mon Sep 17 00:00:00 2001 From: Oswald Buddenhagen Date: Wed, 15 Aug 2012 16:42:21 +0200 Subject: [PATCH] complain about missing input file the parser explicitly excludes complaints about missing files (because they are pretty common in cumulative mode), so we need to do it ourselves. Change-Id: I3c36819ab7b26152271e4557b67fb36b0a595b60 Reviewed-by: Daniel Teske --- tests/manual/proparser/main.cpp | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/tests/manual/proparser/main.cpp b/tests/manual/proparser/main.cpp index fe993ee978e..94f1f4069fe 100644 --- a/tests/manual/proparser/main.cpp +++ b/tests/manual/proparser/main.cpp @@ -82,8 +82,13 @@ static int evaluate(const QString &fileName, const QString &in_pwd, const QStrin visitor.setOutputDir(out_pwd); ProFile *pro; - if (!(pro = parser->parsedProFile(fileName))) + if (!(pro = parser->parsedProFile(fileName))) { + if (!QFile::exists(fileName)) { + qCritical("Input file %s does not exist.", qPrintable(fileName)); + return 3; + } return 2; + } if (!visitor.accept(pro)) { pro->deref(); return 2;