Thanks.  I finally got it working.

I struggled with applying the patch against the latest tree, but
eventually got it to work.  Even then when I did a "make clean;make;make
install" I didn't wind up with an nunit-console2 anywhere and I still
had the config file laying lying around.  My install path is
/opt/latest.  I edited the nunit-console script in /opt/latest/bin to
point it to the 2.0 version, then removed
/opt/latest/lib/mono/2.0/nunit-console.exe.config.

cheers,
andy

-----Original Message-----
From: Kamil Skalski [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, September 21, 2005 11:04 AM
To: Andy Waddell
Cc: mono-list@lists.ximian.com
Subject: Re: [Mono-list] NUnit support for generics?

Then it works:

[EMAIL PROTECTED] testsuite]$ /home/morgul/programs/local/bin/gmcs
t.cs -r:/home/morgul/programs/local/lib/mono/1.0/nunit.framework.dll
-r:System.dll -target:library -out:t.dll
[EMAIL PROTECTED] testsuite]$
/home/morgul/programs/local/bin/nunit-console2 t.dll
NUnit version 2.2.0
Copyright (C) 2002-2003 James W. Newkirk, Michael C. Two, Alexei A.
Vorontsov, Charlie Poole.
Copyright (C) 2000-2003 Philip Craig.
All Rights Reserved.

OS Version: Unix 2.6.11.6    Mono Version: 2.0.50215.16

.Host name : mordor
IP address : 127.0.0.1


You need my patch (in fact, you need 2.0 version of nunit-console.exe)
in order to get it working. I am still thinking how to solve the
symlinks problem, which is preventing this patch from being ok to
commit.
Maybe we could crete nunit2.pc, which would allow obtaining the patch
to 1.0 nunit.*.dll (which are enough to make nunit-console2 work)

2005/9/21, Andy Waddell <[EMAIL PROTECTED]>:
> Ooops.  I forgot that I added an implementation GetHostEntry to my
local
> build.  Just replace GetHostEntry with GetHostByName in my example and
> you will see the problem I'm talking about.
>
> --andy
>
> -----Original Message-----
> From: Kamil Skalski [mailto:[EMAIL PROTECTED]
> Sent: Wednesday, September 21, 2005 10:15 AM
> To: Andy Waddell
> Cc: mono-list@lists.ximian.com
> Subject: Re: [Mono-list] NUnit support for generics?
>
> >
> > [EMAIL PROTECTED] GetHostByNameNUnitTest]$ mcs -target:library
> > -out:GetHostByNameNUnitTest.dll  -reference:nunit.framework
Class1.cs
>
> Strange, I get
> t.cs(16,5): error CS0117: `System.Net.Dns' does not contain a
> definition for `GetHostEntry'
>
> and indeed there is no GetHostEntry in sources of System.Net
>
> >
> > Failures:
> > 1) GetHostByNameNUnitTest.Class1.TestDns :
> System.NullReferenceException
> > : Object reference not set to an instance of an object
> > in <0x00000> <unknown method>
> > in (wrapper managed-to-native) System.Net.Dns:GetHostByName_internal
> > (string,string&,string[]&,string[]&)
>
> Did you try my patch and run test using nunit-console2?
> --
> Kamil Skalski
> http://nazgul.omega.pl
>


--
Kamil Skalski
http://nazgul.omega.pl
_______________________________________________
Mono-list maillist  -  Mono-list@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-list

Reply via email to