So this is just to get the stacktrace? I think the test should expect that
function to return >= 0 and not catch any errors.


On Wed, Oct 2, 2013 at 12:34 PM, David Robison <notifications@github.com>wrote:

> In contrib/platform/test/com/sun/jna/platform/win32/OpenGL32UtilTest.java:
>
> > +
> > +import junit.framework.TestCase;
> > +
> > +/**
> > + * @author drrobison@openroadsconsulting.com
> > + */
> > +public class OpenGL32UtilTest extends TestCase {
> > +
> > +	public static void main(String[] args) {
> > +		junit.textui.TestRunner.run(OpenGL32UtilTest.class);
> > +	}
> > +
> > +	public void testCountGpusNV() {
> > +		try {
> > +			OpenGL32Util.countGpusNV();
> > +		} catch (Exception e) {
>
> The exception is only if something goes wrong. If the nVidia extensions
> are not supported then 0 is returned.
>
> —
> Reply to this email directly or view it on GitHub<https://github.com/twall/jna/pull/270/files#r6720402>
> .
>



-- 

dB. | Moscow - Geneva - Seattle - New York
code.dblock.org - @dblockdotorg <http://twitter.com/#!/dblockdotorg> -
artsy.net - github/dblock <https://github.com/dblock>