diff options
author | Ritt Konstantin <ritt.ks@gmail.com> | 2011-01-21 15:29:10 (GMT) |
---|---|---|
committer | Shane Kearns <shane.kearns@accenture.com> | 2011-01-21 15:30:26 (GMT) |
commit | 586bbfdd296a55edb42c14bacd7901d7c074fd9a (patch) | |
tree | 7751e691ef56433bdda9af46832bcc0939f87c30 /tests | |
parent | 00141ca67b6c20ecc8624bb9d1c70d97d34f544a (diff) | |
download | Qt-586bbfdd296a55edb42c14bacd7901d7c074fd9a.zip Qt-586bbfdd296a55edb42c14bacd7901d7c074fd9a.tar.gz Qt-586bbfdd296a55edb42c14bacd7901d7c074fd9a.tar.bz2 |
make the test a bit stricter
don't say we passed the test if we didn't
Merge-request: 1018
Reviewed-by: Shane Kearns <shane.kearns@accenture.com>
Diffstat (limited to 'tests')
-rw-r--r-- | tests/auto/qtipc/qsharedmemory/tst_qsharedmemory.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/tests/auto/qtipc/qsharedmemory/tst_qsharedmemory.cpp b/tests/auto/qtipc/qsharedmemory/tst_qsharedmemory.cpp index 0719576..f11519b 100644 --- a/tests/auto/qtipc/qsharedmemory/tst_qsharedmemory.cpp +++ b/tests/auto/qtipc/qsharedmemory/tst_qsharedmemory.cpp @@ -332,6 +332,8 @@ void tst_QSharedMemory::attach() QVERIFY(sm.detach()); // Make sure detach doesn't screw up something and we can't re-attach. QVERIFY(sm.attach()); + QVERIFY(sm.data() != 0); + QVERIFY(sm.size() != 0); QVERIFY(sm.detach()); QCOMPARE(sm.size(), 0); QVERIFY(sm.data() == 0); |