From affb63e6e3bf1c676e91afbee45649f86d64d506 Mon Sep 17 00:00:00 2001 From: Michael Meeks Date: Mon, 14 May 2012 15:30:24 +0100 Subject: sot: minor unit test logic cleanup --- sot/qa/cppunit/test_sot.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'sot/qa') diff --git a/sot/qa/cppunit/test_sot.cxx b/sot/qa/cppunit/test_sot.cxx index 5fcbcd672bc5..c4fec43bd001 100644 --- a/sot/qa/cppunit/test_sot.cxx +++ b/sot/qa/cppunit/test_sot.cxx @@ -127,7 +127,7 @@ namespace { SvFileStream aStream(rURL, STREAM_READ); SotStorageRef xObjStor = new SotStorage(aStream); - if (!xObjStor.Is() && !xObjStor->GetError()) + if (!xObjStor.Is() || xObjStor->GetError()) return false; CPPUNIT_ASSERT_MESSAGE("sot storage is not valid", xObjStor->Validate()); -- cgit