浏览代码

Disable checking of default code page for cross-compilation configurations

git-svn-id: trunk@38978 -
pierre 7 年之前
父节点
当前提交
8a60f39a14
共有 3 个文件被更改,包括 6 次插入0 次删除
  1. 2 0
      tests/test/tcpstr19.pp
  2. 2 0
      tests/test/tcpstr9.pp
  3. 2 0
      tests/test/units/fpwidestring/tcpstr9fpwidestring.pp

+ 2 - 0
tests/test/tcpstr19.pp

@@ -51,6 +51,8 @@ begin
   if StringCodePage(Copy(UTF8Encode('Test'), 1, 2)) <> CP_UTF8 then
     halt(3);
   R := 'Test';
+{$if not defined(FPC_CROSSCOMPILING) and not defined(FPC_CPUCROSSCOMPILING)}
   if StringCodePage(R) <> DefaultSystemCodePage then
     halt(4);
+{$endif}
 end.

+ 2 - 0
tests/test/tcpstr9.pp

@@ -36,11 +36,13 @@ uses
 begin
   // this test can be only run with the compiler built right now on the
   // same system
+{$if not defined(FPC_CROSSCOMPILING) and not defined(FPC_CPUCROSSCOMPILING)}
   if StringCodePage(AnsiString('test')) <> DefaultSystemCodePage then
   begin
     WriteLn(StringCodePage(AnsiString('test')), ' <> ', DefaultSystemCodePage);
     halt(1);
   end;
+{$endif}
   Writeln('ok');
 end.
 

+ 2 - 0
tests/test/units/fpwidestring/tcpstr9fpwidestring.pp

@@ -8,11 +8,13 @@ uses
 begin
   // this test can be only run with the compiler built right now on the
   // same system
+{$if not defined(FPC_CROSSCOMPILING) and not defined(FPC_CPUCROSSCOMPILING)}
   if StringCodePage(AnsiString('test')) <> DefaultSystemCodePage then
   begin
     WriteLn(StringCodePage(AnsiString('test')), ' <> ', DefaultSystemCodePage);
     halt(1);
   end;
+{$endif}
   Writeln('ok');
 end.