Windows stuff looks good <br><div class="gmail_quote">On Tue, Mar 3, 2015 at 8:55 AM Tamas Berghammer <<a href="mailto:tberghammer@google.com">tberghammer@google.com</a>> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Use the target triple to get the expectations<br>
<br>
<br>
<a href="http://reviews.llvm.org/D8031" target="_blank">http://reviews.llvm.org/D8031</a><br>
<br>
Files:<br>
  source/API/SBPlatform.cpp<br>
  test/functionalities/platform/<u></u>TestPlatformCommand.py<br>
<br>
Index: source/API/SBPlatform.cpp<br>
==============================<u></u>==============================<u></u>=======<br>
--- source/API/SBPlatform.cpp<br>
+++ source/API/SBPlatform.cpp<br>
@@ -378,7 +378,7 @@<br>
     PlatformSP platform_sp(GetSP());<br>
     if (platform_sp)<br>
     {<br>
-        ArchSpec arch(platform_sp-><u></u>GetRemoteSystemArchitecture())<u></u>;<br>
+        ArchSpec arch(platform_sp-><u></u>GetSystemArchitecture());<br>
         if (arch.IsValid())<br>
         {<br>
             // Const-ify the string so we don't need to worry about the lifetime of the string<br>
Index: test/functionalities/platform/<u></u>TestPlatformCommand.py<br>
==============================<u></u>==============================<u></u>=======<br>
--- test/functionalities/platform/<u></u>TestPlatformCommand.py<br>
+++ test/functionalities/platform/<u></u>TestPlatformCommand.py<br>
@@ -33,8 +33,11 @@<br>
<br>
     def test_shell(self):<br>
         """ Test that the platform shell command can invoke ls. """<br>
-        if sys.platform.startswith("<u></u>win32"):<br>
+        triple = self.dbg.GetSelectedPlatform()<u></u>.GetTriple()<br>
+        if re.match(".*-.*-windows", triple):<br>
           self.expect("platform shell dir c:\\", substrs = ["Windows", "Program Files"])<br>
+        elif re.match(".*-.*-.*-android", triple):<br>
+          self.expect("platform shell ls /", substrs = ["cache", "dev", "system"])<br>
         else:<br>
           self.expect("platform shell ls /", substrs = ["dev", "tmp", "usr"])<br>
<br>
EMAIL PREFERENCES<br>
  <a href="http://reviews.llvm.org/settings/panel/emailpreferences/" target="_blank">http://reviews.llvm.org/<u></u>settings/panel/<u></u>emailpreferences/</a><br>
</blockquote></div>