vfs: check userland buffers before reading them.
[haiku.git] / src / tests / kits / app / bmessage / MessageOpAssignTest.cpp
blobf5c8faf0a2500662e2ecd04c080322f9c02bfd4c
1 //------------------------------------------------------------------------------
2 // MessageOpAssignTest.cpp
3 //
4 //------------------------------------------------------------------------------
6 // Standard Includes -----------------------------------------------------------
8 // System Includes -------------------------------------------------------------
9 #include <Message.h>
11 // Project Includes ------------------------------------------------------------
13 // Local Includes --------------------------------------------------------------
14 #include "MessageOpAssignTest.h"
16 // Local Defines ---------------------------------------------------------------
18 // Globals ---------------------------------------------------------------------
20 //------------------------------------------------------------------------------
21 void TMessageOpAssignTest::MessageOpAssignTest1()
23 BMessage msg1(1234);
24 BMessage msg2;
25 msg2 = msg1;
26 CPPUNIT_ASSERT(msg2.what == msg1.what);
28 //------------------------------------------------------------------------------
29 TestSuite* TMessageOpAssignTest::Suite()
31 TestSuite* suite = new TestSuite("BMessage::operator=(const BMessage&)");
33 ADD_TEST4(BMessage, suite, TMessageOpAssignTest, MessageOpAssignTest1);
35 return suite;
37 //------------------------------------------------------------------------------
40 * $Log $
42 * $Id $