#1 2016-04-24 18:35:16

HollosCs
Member
Registered: 2015-12-08
Posts: 56

TestSQL3 failed

Hi!

Run TestSQL3 in Seattle and Berlin. I got an error.
------------------
1.1. Low level common:
!  - UTF8: 14,000 / 133,141 FAILED  1.31s

Using mORMot 1.18.2596 FTS3
Running on Windows 10 64bit (10.0.10586) with code page 1250
TSQLite3LibraryStatic 3.12.2 with internal MM
Generated with: Delphi 10.1 Berlin compiler

Time elapsed for all tests: 82.79s
Tests performed at 2016.04.24. 20:22:43

Total assertions failed for all test suits:  14,000 / 24,056,323
! Some tests FAILED: please correct the code.
-------------------------
What's the problem?

Offline

#2 2016-04-24 18:42:41

ab
Administrator
From: France
Registered: 2010-06-21
Posts: 14,666
Website

Re: TestSQL3 failed

I guess it comes from the fact that your code page is 1250, whereas some of the tests may expect a 1252 system...

Could you check which lines fails?

Offline

#3 2016-04-24 18:51:50

HollosCs
Member
Registered: 2015-12-08
Posts: 56

Re: TestSQL3 failed

Thanks for your incredible fast answer!
Is it a problem or only for my codepage setting error?

SynSelfTests.TTestLowLevelCommon._UTF8

for i := 0 to 1000 do begin
    W := RandomAnsi7(i*5);
    Check(length(W)=i*5);
    for CP := 1250 to 1258 do
      Test(CP,W);  <----- 3119.

SynSelfTests.Test(1250,'Eu>v1')
  if W='' then
    exit;
  {$ifdef HASCODEPAGE}
  {$ifndef FPC}
  Check(StringCodePage(W)=1252);  <---
  {$endif}
  CP := StringCodePage(A);
  Check(CP=C.CodePage);
  {$endif}
  if CP=CP_UTF16 then
    exit;

Offline

#4 2016-04-24 19:41:07

ab
Administrator
From: France
Registered: 2010-06-21
Posts: 14,666
Website

Re: TestSQL3 failed

This is a problem at the test level, not at the framework level.

This test seems to work only on systems with code page 1252...
We should fix the test...

Offline

Board footer

Powered by FluxBB