} catch (const Exception &) {
caught = true;
}
- if (!caught)
- QFAIL("did not get exception");
+ QVERIFY2(caught, "did not get exception");
}
// Blocking mode:
} catch (const Exception &) {
caught = true;
}
-
- if (!caught)
- QFAIL("did not get exception");
+ QVERIFY2(caught, "did not get exception");
}
// test throwing the exception from the main thread (different code path)
} catch (const Exception &) {
caught = true;
}
-
- if (!caught)
- QFAIL("did not get exception");
+ QVERIFY2(caught, "did not get exception");
}
// Asynchronous mode:
} catch (const QtConcurrent::UnhandledException &) {
caught = true;
}
- if (!caught)
- QFAIL("did not get exception");
+ QVERIFY2(caught, "did not get exception");
}
// Blocking mode:
} catch (const QtConcurrent::UnhandledException &) {
caught = true;
}
-
- if (!caught)
- QFAIL("did not get exception");
+ QVERIFY2(caught, "did not get exception");
}
// test throwing the exception from the main thread (different code path)
} catch (const QtConcurrent::UnhandledException &) {
caught = true;
}
-
- if (!caught)
- QFAIL("did not get exception");
+ QVERIFY2(caught, "did not get exception");
}
}