aboutsummaryrefslogtreecommitdiffstats
path: root/tests/yagetest.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'tests/yagetest.cpp')
-rw-r--r--tests/yagetest.cpp8
1 files changed, 6 insertions, 2 deletions
diff --git a/tests/yagetest.cpp b/tests/yagetest.cpp
index 0b8615bc..38d00ba3 100644
--- a/tests/yagetest.cpp
+++ b/tests/yagetest.cpp
@@ -11,8 +11,12 @@
TEST(YAGE, InitQuit)
{
- ASSERT_TRUE(yage::init());
- yage::quit();
+ try {
+ yage::init();
+ yage::quit();
+ } catch(std::runtime_error e) {
+ ASSERT_TRUE(false);
+ }
}
int main(int argc, char **argv)