--- Tim Reilly <[EMAIL PROTECTED]> wrote:

<snip/>

> > I agree the JNI will be a PITA for me, especially since I'm re-learning
> C. I
> have a simple program working on Win2K and RH8. I'm not sure if the code
> would need to be recompiled for each target platform (at least making it
> an
> optional test might be good)? Perhaps running the test initially was
> sufficient? I'm not sure if Phil is minus on the JNI testing or for
> native
> code in the range test realizing what I'd proposed wouldn't work anyhow?
> Regardless, both points above are valid. The sample output (run2) below
> shows the interleaving calls not working which is logical without some
> delay
> in the calls, and as Noel suggests "capture the output and compare" would
> probably be the approach. I don't mind doing the jni (learn something
> new)
> but Phil are you minus on the jni range testing (past my own sanity tests
> here) or jni in the unit tests generally speaking?

The problem is that I don't see what this is really buying us.  If I
understand the spec correctly, there are three things to test: format,
clock agreement and correct handling of the situation where requests arrive
at a rate faster than the clock resolution.  The first two we should be
able to test in Java.  Exact behavior in the third case will likely be
machine- and language-dependent, but again should be testable in Java.  
> 
> 
> Sample output from my tests; right now I call an .exe using
> Runtime.exec...
> //Run 1
> From C reference code
> 132940402931250000
> From java
> 132940402931250000
> From C reference code
> 132940402931562500
> 
> //Run 2
> From C reference code
> 132940403477187500
> From java
> 132940403477180000
> From C reference code
> 132940403477343750
> 
What exactly is this showing that could not be tested in Java or by running
a Java test using a pre-generated file of GUIDs made with the C code?  What
I meant in my earlier response was that the pain of maintaining and
distributing C code with the unit tests did not seem justified by the
value.  Maybe I am missing something?

Phil
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 




__________________________________
Do you Yahoo!?
Yahoo! SiteBuilder - Free web site building tool. Try it!
http://webhosting.yahoo.com/ps/sb/

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to