[PolyORB-users] PolyORB / Mico oneway procedure interoperability?
Rémi Lafage
remi.lafage at cena.fr
Wed Oct 19 08:53:22 CEST 2005
diagnosticJerome Hugues wrote:
>Hi Rémi,
>
>Just a thought when investigating your code, after investigating PolyORB
>
>Rémi Lafage (remi.lafage at cena.fr):
>
>Here is a snippet from your test
>
>
>
>>allfunc->oneway_void_proc();
>>sleep(1);
>>bool ok = (allfunc->oneway_checker() == 1);
>>if (ok) {
>>sleep(5);
>>ok = (allfunc->oneway_checker() == 2);
>>}
>>if (ok) {
>>printf("ONEWAY FAILED!\n");
>>} else {
>>printf("ONEWAY OK!\n");
>>}
>>}
>>
>>
>
>Here is the Ada equivalent (our code)
>
> begin
> oneway_void_proc (MyObj);
> delay 1.0;
> Ok := oneway_checker (MyObj) = 1;
> if Ok then
> delay 5.0;
> Ok := oneway_checker (MyObj) = 2;
> end if;
> exception when others =>
> Ok := False;
> end;
> Output ("test void one way procedure", Ok);
>
>Unless I'm mistaken, there is an error in your test .. you've switched
>"ONEWAY FAILED" and "ONEWAY OK", haven't you ?
>
>
>
Oups! Yes, indeed!
Good job you found it! (That was just to see if my test is reused. ;-)
Well, I fix my previous post on Mico client oneway test results :
It never works. The test crashes or fails.
The test is fixed, now it's PolyORB's turn?! :-)
Remi
More information about the PolyORB-users
mailing list