Commit 480edf76 authored by Adrian Page's avatar Adrian Page

Fail if the store couldn't be created, rather than crash.

svn path=/trunk/koffice/; revision=690001
parent 18c65c47
......@@ -69,6 +69,8 @@ int test( const char* testName, KoStore::Backend backend, const QString& testFil
kDebug() << "======================="<<testName<<"====================================" << endl;
KoStore* store = KoStore::createStore( testFile, KoStore::Write, "", backend );
if ( store == 0 )
return cleanUp( store, testFile, badStorage );
if ( store->bad() )
return cleanUp( store, testFile, badStorage );
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment