[fpc-devel] Rather large flaw in TJSONConfig component

Graeme Geldenhuys graemeg.lists at gmail.com
Mon Jun 21 16:17:32 CEST 2010


[...Sorry, I think my first message's attachment was too big. This one
is smaller...]

On 21/06/2010, Mattias Gaertner wrote:
>
> TXMLConfig reads by default the old config.
> Unless you use the same paths, no value is lost.


Op 2010-06-21 15:38, Mattias Gaertner het geskryf:
> Unless you use the same paths, no value is lost.

Sorry Mattias, but you are wrong. TXMLConfig shows the exact same issue as
TJSONConfig. Here is the output after the test run. I attached the
xmlconfig test suite.

Test is simple:
 - load form 1
 - load form 2
 - close form 1 > which saves settings
 - close form 2 > which saves settings and overwrites everything.


---------------------------------------
$ ./testxmlconf --format=plain -a
 Time:00.001 N:1 E:0 F:1 I:0
 TTestXMLConfig Time:00.001 N:1 E:0 F:1 I:0
   00.000  TestConcurrency  Failed: Failed on 1 expected: <400> but was: <100>

Number of run tests: 1
Number of errors:    0
Number of failures:  1

List of failures:
 Failure:
   Message:           TTestXMLConfig.TestConcurrency: Failed on 1
expected: <400> but was: <100>
   Exception class:   EAssertionFailedError
   Exception message: Failed on 1 expected: <400> but was: <100>



$ cat concurrency.xml
<?xml version="1.0"?>
<CONFIG>
 <LearnerListForm Width="456" Height="600" Maximized="False"/>
</CONFIG>

---------------------------------------

-- 
Regards,
  - Graeme -


_______________________________________________
fpGUI - a cross-platform Free Pascal GUI toolkit
http://opensoft.homeip.net/fpgui/
-------------- next part --------------
A non-text attachment was scrubbed...
Name: testsuite_xmlconf.tar.gz
Type: application/x-gzip
Size: 1779 bytes
Desc: not available
URL: <http://lists.freepascal.org/pipermail/fpc-devel/attachments/20100621/2bdc3c9f/attachment.bin>


More information about the fpc-devel mailing list