lmi
[Top][All Lists]
Advanced

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

Re: [lmi] wx_test: output strings truncated to one character


From: Greg Chicares
Subject: Re: [lmi] wx_test: output strings truncated to one character
Date: Tue, 9 Feb 2016 18:30:51 +0000
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Icedove/38.5.0

On 02/09/2016 03:54 PM, Greg Chicares wrote:
> Building and running lmi (HEAD) in msw-7, we observe that this
> code in 'wx_test_about_version.cpp':
>   // Extract the last word of the dialog title.
>   wxString const last_word = d->GetTitle().AfterLast(' ');
>   wxPrintf("About dialog version string is \"%s\".\n", last_word);
>   LMI_ASSERT_EQUAL(last_word, LMI_VERSION);
> prints:
>   About dialog version string is "2".
> but LMI_VERSION is:
>   #define LMI_VERSION "20160114T1914Z"
> and the assertion above succeeds, so it seems that the wxString
> is correct but something is wrong with wxPrintf().

Here's the same thing, built and run in msw-xp running on bare metal.
This is new--I guess it's a gcc-4.x runtime diagnostic:
  "pure virtual method called"
We didn't see that in msw-7 or in my msw-xp VM. On msw-7, output
strings are truncated as below, but the program runs to completion;
however, there it prints
  In file ../src/msw/window.cpp at line 590: 'SetFocus' failed with\
  error 0x00000057 (the parameter is incorrect.).
twice before any other output.

/opt/lmi/bin[0]$./wx_test.exe --ash_nazg --data_path=/opt/lmi/data
pure virtual method called
NOTE: starting the test suite
a: started
About dialog version string is "2".
time=547ms (for a)
a: ok
b: started
time=0ms (for b)
b: ok
c: started
time=11665ms (for c)
c: ok
c: started
c: skipped (n)
c: started
time=611ms (for c)
c: ok
c: started
time=1133ms (for c)
c: ok
c: started
time=370ms (for c)
c: ok
c: started
time=1070ms (for c)
c: ok
c: started
time=295ms (for c)
c: ok
c: started
time=324ms (for c)
c: ok
c: started
time=597ms (for c)
c: ok
c: started
time=398ms (for c)
c: ok
c: started
time=64ms (for c)
c: ok
d: started
d: skipped (n)
d: started
d: skipped (n)
e: started
Expiry dates: begin=2, end=2
time=0ms (for e)
e: ok
i: started
In file ../include/wx/msw/private.h at line 834: 'UnregisterClass'
failed with error 0x00000584 (class still has open windows.).
/opt/lmi/bin[1]$




reply via email to

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