From bb96876a01a8ac345a55dcc8210511ad6acc4d6c Mon Sep 17 00:00:00 2001 From: Klaus Kaempf Date: Sat, 29 Apr 2006 19:54:25 +0000 Subject: [PATCH] try/catch around store access --- testsuite/source/tests/suseparser.cc | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/testsuite/source/tests/suseparser.cc b/testsuite/source/tests/suseparser.cc index 3c7b503..66c9809 100644 --- a/testsuite/source/tests/suseparser.cc +++ b/testsuite/source/tests/suseparser.cc @@ -92,7 +92,16 @@ int main( int argc, char * argv[] ) return 1; } - ResStore store = src.resolvables(); + ResStore store; + try { + store = src.resolvables(); + catch( const Exception & excpt_r ) { + cerr << "Can't access store" << endl; + ZYPP_CAUGHT( excpt_r ); + return 1; + } + + INT << "Found " << store.size() << " resolvables" << endl; int pkgcount = 0; int selcount = 0; -- 2.7.4