瀏覽代碼

* Fixed running library tests on android.

git-svn-id: branches/targetandroid@23385 -
yury 12 年之前
父節點
當前提交
32551f3c6b
共有 1 個文件被更改,包括 7 次插入1 次删除
  1. 7 1
      tests/utils/dotest.pp

+ 7 - 1
tests/utils/dotest.pp

@@ -644,7 +644,8 @@ begin
     (LTarget='solaris') or
     (LTarget='iphonesim') or
     (LTarget='darwin') or
-    (LTarget='aix');
+    (LTarget='aix') or
+    (LTarget='android');
 
   { Set ExeExt for CompilerTarget.
     This list has been set up 2011-06 using the information in
@@ -1462,6 +1463,11 @@ var
 begin
   if RemoteAddr='' then
     exit;
+  if rshprog = 'adb' then
+    begin
+      RemoteShellNeedsExport:=true;
+      exit;
+    end;
   ExeLogFile:='__remote.tmp';
   ExecuteRemote(rshprog,RemoteRshParas+
                 ' "echo SHELL=${SHELL}"',StartTicks,EndTicks);