diff options
author | Friedemann Kleint <Friedemann.Kleint@qt.io> | 2018-07-12 12:49:32 +0200 |
---|---|---|
committer | Friedemann Kleint <Friedemann.Kleint@qt.io> | 2018-07-17 07:00:09 +0000 |
commit | b9ff93a70c74ade2615d79bf9d465137c06cb826 (patch) | |
tree | 0e2b6be1346e2e8fd72e1068d8cf3852d70f8fd7 /sources/shiboken2/ApiExtractor/tests | |
parent | 82e805477cb811170b190e3254f89cda2c5a9568 (diff) |
shiboken/ApiExtractor tests: Handle parse failures
Pass up the bool return.
Task-number: PYSIDE-743
Change-Id: Ic63a33be4c20a225d9f6a2e8a750e0e90bdce358
Reviewed-by: Christian Tismer <tismer@stackless.com>
Diffstat (limited to 'sources/shiboken2/ApiExtractor/tests')
-rw-r--r-- | sources/shiboken2/ApiExtractor/tests/testutil.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/sources/shiboken2/ApiExtractor/tests/testutil.h b/sources/shiboken2/ApiExtractor/tests/testutil.h index 6152793f5..dea6d92d8 100644 --- a/sources/shiboken2/ApiExtractor/tests/testutil.h +++ b/sources/shiboken2/ApiExtractor/tests/testutil.h @@ -53,7 +53,8 @@ namespace TestUtil buffer.setData(xmlCode); if (!buffer.open(QIODevice::ReadOnly)) return Q_NULLPTR; - td->parseFile(&buffer); + if (!td->parseFile(&buffer)) + return nullptr; buffer.close(); // parse C++ code QTemporaryFile tempSource(QDir::tempPath() + QLatin1String("/st_XXXXXX_main.cpp")); |