summaryrefslogtreecommitdiffstats
path: root/lldb/unittests/Host/ProcessInfoTest.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'lldb/unittests/Host/ProcessInfoTest.cpp')
-rw-r--r--lldb/unittests/Host/ProcessInfoTest.cpp20
1 files changed, 20 insertions, 0 deletions
diff --git a/lldb/unittests/Host/ProcessInfoTest.cpp b/lldb/unittests/Host/ProcessInfoTest.cpp
new file mode 100644
index 00000000000..ad6341aebf4
--- /dev/null
+++ b/lldb/unittests/Host/ProcessInfoTest.cpp
@@ -0,0 +1,20 @@
+//===-- ProcessInfoTest.cpp -------------------------------------*- C++ -*-===//
+//
+// The LLVM Compiler Infrastructure
+//
+// This file is distributed under the University of Illinois Open Source
+// License. See LICENSE.TXT for details.
+//
+//===----------------------------------------------------------------------===//
+
+#include "lldb/Host/ProcessInfo.h"
+#include "gtest/gtest.h"
+
+using namespace lldb_private;
+
+TEST(ProcessInfoTest, Constructor) {
+ ProcessInfo Info("foo", ArchSpec("x86_64-pc-linux"), 47);
+ EXPECT_STREQ("foo", Info.GetName());
+ EXPECT_EQ(ArchSpec("x86_64-pc-linux"), Info.GetArchitecture());
+ EXPECT_EQ(47, Info.GetProcessID());
+}
OpenPOWER on IntegriCloud