summaryrefslogtreecommitdiff
path: root/src/mongo/util/processinfo_test.cpp
diff options
context:
space:
mode:
authorAndrea Lattuada <andrea.lattuada@10gen.com>2012-11-06 13:37:15 -0500
committerAndy Schwerin <schwerin@10gen.com>2012-11-07 13:35:29 -0500
commit1538f5d076fc15b5736d8535316daed72b26f987 (patch)
tree1143871c767196a7c981746ad3fe2d4bbf9c83c1 /src/mongo/util/processinfo_test.cpp
parent29fbd8dffe5dbeb7901c8a5e3c3d514c6d57074e (diff)
downloadmongo-1538f5d076fc15b5736d8535316daed72b26f987.tar.gz
SERVER-7570 Initialize ProcessInfo::SystemInfo at startup, add pageSize.
Signed-off-by: Andy Schwerin <schwerin@10gen.com>
Diffstat (limited to 'src/mongo/util/processinfo_test.cpp')
-rw-r--r--src/mongo/util/processinfo_test.cpp29
1 files changed, 29 insertions, 0 deletions
diff --git a/src/mongo/util/processinfo_test.cpp b/src/mongo/util/processinfo_test.cpp
new file mode 100644
index 00000000000..2d13c1861fd
--- /dev/null
+++ b/src/mongo/util/processinfo_test.cpp
@@ -0,0 +1,29 @@
+/**
+ * Copyright (C) 2012 10gen Inc.
+ *
+ * This program is free software: you can redistribute it and/or modify
+ * it under the terms of the GNU Affero General Public License, version 3,
+ * as published by the Free Software Foundation.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU Affero General Public License for more details.
+ *
+ * You should have received a copy of the GNU Affero General Public License
+ * along with this program. If not, see <http://www.gnu.org/licenses/>.
+ */
+
+#include "mongo/unittest/unittest.h"
+#include "mongo/util/processinfo.h"
+
+using mongo::ProcessInfo;
+
+namespace mongo_test {
+ TEST(ProcessInfo, SysInfoIsInitialized) {
+ ProcessInfo processInfo;
+ if (processInfo.supported()) {
+ ASSERT_FALSE(processInfo.getOsType().empty());
+ }
+ }
+}