lmi
[Top][All Lists]
Advanced

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

Re: [lmi] Intermittent unit-test failure


From: Greg Chicares
Subject: Re: [lmi] Intermittent unit-test failure
Date: Sun, 05 Oct 2014 14:37:38 +0000
User-agent: Mozilla/5.0 (Windows NT 5.1; rv:24.0) Gecko/20100101 Thunderbird/24.6.0

On 2012-06-13 11:20Z, Greg Chicares wrote:
> For the first time ever, I just now saw this failure:
> 
> Running system_command_test:
> 
> **** test failed: Expression 'system_command("grep --quiet xyz eraseme")' 
> failed to throw expected exception 'std::runtime_error'
> [file /lmi/src/lmi/system_command_test.cpp, line 49]
> 
> **** 1 test errors detected; 1 tests succeeded
> 
> Running it in a loop:
>   /lmi/src/build/lmi/CYGWIN_NT-5.1/gcc/ship[0]$while true; do 
> ./system_command_test.exe --accept && echo okay; done
> I see it fail on the order of ten percent of the time.

FWIW, this no longer seems to be a problem. The relevant lmi code
hasn't been changed in this decade except to update copyright
notices. But I've updated Cygwin since the original message, so
now this unit test is finding a different 'grep'; that's not a
convincing explanation, but I can find no other--and won't spend
more time looking for one, because this works just fine now.

The loop above has become uninterruptible with Ctrl-C and even
with Ctrl-Break, so I modified the loop thus:

/lmi/src/build/lmi/CYGWIN_NT-5.1/gcc/ship[0]$for z in {1..100}; do 
./system_command_test.exe --accept | grep 'error'; done 2>&1 |less -N

and all I see is "no errors detected" over and over.




reply via email to

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