summaryrefslogtreecommitdiff
path: root/dbtests/namespacetests.cpp
diff options
context:
space:
mode:
authorAaron <aaron@10gen.com>2009-05-04 16:00:28 -0400
committerAaron <aaron@10gen.com>2009-05-04 16:00:28 -0400
commit2549b6ece20f2dcee77fdae50817244436bab78f (patch)
treed0bea1fdbc9c30408a09c3d7199faafaa9afb066 /dbtests/namespacetests.cpp
parent1cc7ed2b075dabc90105d0f708dd39486830351f (diff)
downloadmongo-2549b6ece20f2dcee77fdae50817244436bab78f.tar.gz
check namespacedetails size consistency MINOR
Diffstat (limited to 'dbtests/namespacetests.cpp')
-rw-r--r--dbtests/namespacetests.cpp8
1 files changed, 8 insertions, 0 deletions
diff --git a/dbtests/namespacetests.cpp b/dbtests/namespacetests.cpp
index c120fedcd9a..3fe5fe726e5 100644
--- a/dbtests/namespacetests.cpp
+++ b/dbtests/namespacetests.cpp
@@ -580,6 +580,13 @@ namespace NamespaceTests {
// }
// };
+ class Size {
+ public:
+ void run() {
+ ASSERT_EQUALS( 496U, sizeof( NamespaceDetails ) );
+ }
+ };
+
} // namespace NamespaceDetailsTests
class All : public UnitTest::Suite {
@@ -605,6 +612,7 @@ namespace NamespaceTests {
add< NamespaceDetailsTests::TwoExtent >();
add< NamespaceDetailsTests::Migrate >();
// add< NamespaceDetailsTests::BigCollection >();
+ add< NamespaceDetailsTests::Size >();
}
};
} // namespace NamespaceTests