lmi
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [lmi] [PATCH] wx_test_validate_output.cpp


From: Vadim Zeitlin
Subject: Re: [lmi] [PATCH] wx_test_validate_output.cpp
Date: Tue, 10 Mar 2015 17:58:57 +0100

On Mon, 09 Mar 2015 21:25:37 +0000 Greg Chicares <address@hidden> wrote:

GC> On 2015-03-03 22:51, Vadim Zeitlin wrote:
GC> > On Mon, 02 Mar 2015 00:16:05 +0000 Greg Chicares <address@hidden> wrote:
GC> > 
GC> > GC> I've copied my results below. I expect
GC> > GC>   default_update: ERROR (Assertion failure: A message box "Unable to 
read file 'C:/etc/opt/lmi/default.ill'. [file 
/lmi/src/lmi/illustration_document.cpp, line 110] " was shown unexpectedly, 
expected defaults dialog. [file /lmi/src/lmi/wx_test_default_update.cpp, line 
96, in run()].)
GC> > GC> until that test is made conditional on '--distribution',
GC> > 
GC> > [As an aside, I'll post the long due patch doing this soon]
GC> 
GC> Okay, that one no longer occurs.
GC> 
GC> However, I see this new error:
GC> 
GC> input_sequences: ERROR (Input validation problems for '': Interval [ 20, 
310 ) is improper: it ends after the last possible duration. Current token ';' 
at position 42.  [file /lmi/src/lmi/input_realization.cpp, line 260] )
GC> 
GC> The default input and retirement ages are 45 and 65 respectively,
GC> as I have no default input file. The '310' doesn't make sense.
GC> I never saw anything like that with the old version.

 I can't reproduce this here, even after deleting the default file
(/cygdrive/c/fop-0.20.5/coli_boli_default.ill if I understand correctly).
And it's very worrisome that we don't get the same results, there must be
some difference in our configuration that I completely fail to see.


GC> > GC> but is this error:
GC> > GC>   validate_output_census: ERROR (Assertion 'output_values.exists()' 
failed (file "C:/opt/lmi/bin/values.tsv" after print case to PDF). [file 
/lmi/src/lmi/wx_test_validate_output.cpp, line 360] )
GC> > GC> expected?
GC> 
GC> I still have that error.

 And I still don't :-( Just to verify: do you only get these errors when
running all the tests (which could indicate some spooky bug depending on
the exact timing of something) or even when you just run the individual
tests, i.e. "./wx_test.exe -t input_sequences" or "./wx_test.exe -t
validate_output_census"? FWIW I typically run just the individual tests,
although I did run the full test suite before replying to this message.
I also use --data_path and --a......g arguments.

GC> Within five minutes of rerunning the test suite I did this:
GC>   find /cygdrive/c -mmin -5 | grep tsv
GC> It found
GC>   /cygdrive/c/opt/lmi/bin/testfile.mec.tsv
GC> and several 'MSEC*' files in the same directory, but no "values.tsv".
...
GC> /// Census | Edit case defaults
GC> ///   Comments: replace contents with "idiosyncrasy_spreadsheet"
GC> ///   OK
GC> ///   Yes (apply to all)
GC> /// Census | Print case to PDF
GC> /// Verify that this file was created:
GC> ///   values.tsv
GC> 
GC> Now /opt/lmi/bin contains "values.tsv" along with three pairs of
GC> new "ABC*.fo.xml" and "ABC*.pdf" files.

 The combination of these facts leads me to believe that the automatic test
didn't enter the special comment value correctly into the dialog. If this
is true, the attached patch should at least detect this and provide a more
clear error message -- could you please apply it locally and try running
with it?

 Of course, this still wouldn't explain _why_ does this fail, but we would
at least know what fails exactly.

 I have no ideas about the input_sequences test failure though, I'll
continue looking into this...

 Thanks [in advance] for your testing!
VZ

Attachment: 0001-Check-that-the-comments-field-was-correctly-updated-.patch
Description: Text document


reply via email to

[Prev in Thread] Current Thread [Next in Thread]