[Mono-devel-list] Test needs smallspc.exe

Sebastien Pouliot spouliot at videotron.ca
Fri Nov 14 21:20:59 EST 2003


>There's a test that needs smallspc.exe to succeed, but it's not in CVS or
>the build.

Please look again at the unit test source.

public void ValidSignature ()
	FileStream fs = new FileStream ("smallspc.exe", FileMode.Create,
	fs.Write (smallspcexe, 0, smallspcexe.Length);
	fs.Close ();

	X509Certificate spc = X509Certificate.CreateFromSignedFile
	X509Certificate cert = new X509Certificate (spouliot);
	AssertEquals ("CreateFromSignedFile", spc.GetRawCertDataString(),

You'll see that the first step is to create the smallspc.exe file using a
byte array (included in the source code) - so the test is totally self
contained. This test works (or at least worked) under Windows. If it doesn't
work under Linux then there's surely a bug - but it's not in the test code

Please remove the [Ignore] attribute from CVS and fill details into

Sebastien Pouliot
Security Architect, Motus Technologies, http://www.motus.com
work: spouliot at motus.com
home: spouliot at videotron.ca
blog: http://pages.infinit.net/ctech/poupou.html

-----Original Message-----
From: mono-devel-list-admin at lists.ximian.com
[mailto:mono-devel-list-admin at lists.ximian.com]On Behalf Of
ndrochak at gol.com
Sent: 14 novembre 2003 01:58
To: mono-devel-list at lists.ximian.com
Cc: Sebastien Pouliot
Subject: [Mono-devel-list] Test needs smallspc.exe


There's a test that needs smallspc.exe to succeed, but it's not in CVS or in
the build.  I've marked the test with an [Ignore] for now until you can get
that file in somehow.

Nick D.

Mono-devel-list mailing list
Mono-devel-list at lists.ximian.com

More information about the Mono-devel-list mailing list