A a simple test file for some lldb 'platform' commands.
Add a missing result.SetStatus() stmt to the CommandObjectPlatformList::Execute() impl.
llvm-svn: 128575
diff --git a/lldb/source/Commands/CommandObjectPlatform.cpp b/lldb/source/Commands/CommandObjectPlatform.cpp
index b57a51b..42ede89 100644
--- a/lldb/source/Commands/CommandObjectPlatform.cpp
+++ b/lldb/source/Commands/CommandObjectPlatform.cpp
@@ -206,6 +206,8 @@
result.AppendError ("no platforms are available\n");
result.SetStatus (eReturnStatusFailed);
}
+ else
+ result.SetStatus (eReturnStatusSuccessFinishResult);
return result.Succeeded();
}
};