<div dir="ltr"><div>I've expanded PlatformLinux::GetStatus to work more like the Mac version (by calling Platform::GetStatus and then adding in the fields from uname in the same format). I've also fixed the test case for this to no longer expect failure.<br>
<br></div>Here's the new output:<br><br>(lldb) platform status<br> Platform: host<br> Triple: x86_64--linux-gnu<br>OS Version: 3.2.0<br> Hostname: localhost<br> Kernel: Linux<br> Release: 3.2.0-41-generic<br>
Version: #66-Ubuntu SMP Thu Apr 25 03:27:11 UTC 2013<br><br><div><br>Index: test/functionalities/platform/TestPlatformCommand.py<br>===================================================================<br>--- test/functionalities/platform/TestPlatformCommand.py (revision 181914)<br>
+++ test/functionalities/platform/TestPlatformCommand.py (working copy)<br>@@ -27,7 +27,6 @@<br> self.expect("platform process info", error=True,<br> substrs = ['one or more process id(s) must be specified'])<br>
<br>- @expectedFailureLinux # due to <a href="http://llvm.org/pr14806">llvm.org/pr14806</a> -- "platform status" prints more information on Mac OS X than on Linux<br> def test_status(self):<br> self.expect("platform status",<br>
substrs = ['Platform', 'Triple', 'OS Version', 'Kernel', 'Hostname'])<br>Index: source/Plugins/Platform/Linux/PlatformLinux.cpp<br>===================================================================<br>
--- source/Plugins/Platform/Linux/PlatformLinux.cpp (revision 181914)<br>+++ source/Plugins/Platform/Linux/PlatformLinux.cpp (working copy)<br>@@ -336,12 +336,14 @@<br> {<br> struct utsname un;<br> <br>- if (uname(&un)) {<br>
- strm << "Linux";<br>- return;<br>- }<br>+ Platform::GetStatus(strm);<br> <br>- strm << un.sysname << ' ' << un.release << ' ' << un.version << '\n';<br>
+ if (uname(&un))<br>+ return;<br>+<br>+ strm.Printf (" Kernel: %s\n", un.sysname);<br>+ strm.Printf (" Release: %s\n", un.release);<br>+ strm.Printf (" Version: %s\n", un.version);<br>
}<br> <br> size_t<br><br></div></div>