|
Timotheus Pokorra |
4c55d37 |
diff -uNr a/build/Makefile.in b/build/Makefile.in
|
|
Timotheus Pokorra |
4c55d37 |
--- a/build/Makefile.in 2016-08-31 15:31:04.615121392 +0200
|
|
Timotheus Pokorra |
4c55d37 |
+++ b/build/Makefile.in 2016-08-31 15:31:04.703114267 +0200
|
|
Timotheus Pokorra |
4c55d37 |
@@ -306,9 +306,7 @@
|
|
Timotheus Pokorra |
4c55d37 |
-r:./Mono.Debugger.dll \
|
|
Timotheus Pokorra |
4c55d37 |
-r:./Mono.Debugger.Frontend.dll \
|
|
Timotheus Pokorra |
4c55d37 |
-r:System.Runtime.Remoting \
|
|
Timotheus Pokorra |
4c55d37 |
- -r:nunit.framework \
|
|
Timotheus Pokorra |
4c55d37 |
- -r:nunit.core \
|
|
Timotheus Pokorra |
4c55d37 |
- -r:nunit.core.interfaces
|
|
Timotheus Pokorra |
4c55d37 |
+ -pkg:nunit2
|
|
Timotheus Pokorra |
4c55d37 |
|
|
Timotheus Pokorra |
4c55d37 |
TEST_SRCLIST = \
|
|
Timotheus Pokorra |
4c55d37 |
$(top_srcdir)/test/testsuite/*.cs \
|
|
Timotheus Pokorra |
4c55d37 |
@@ -339,9 +339,7 @@
|
|
Timotheus Pokorra |
4c55d37 |
-r:./Mono.Debugger.dll \
|
|
Timotheus Pokorra |
4c55d37 |
-r:./Mono.Debugger.Frontend.dll \
|
|
Timotheus Pokorra |
4c55d37 |
-r:./Mono.Debugger.Test.Framework.dll \
|
|
Timotheus Pokorra |
4c55d37 |
- -r:nunit.framework \
|
|
Timotheus Pokorra |
4c55d37 |
- -r:nunit.core \
|
|
Timotheus Pokorra |
4c55d37 |
- -r:nunit.core.interfaces
|
|
Timotheus Pokorra |
4c55d37 |
+ -pkg:nunit2
|
|
Timotheus Pokorra |
4c55d37 |
|
|
Timotheus Pokorra |
4c55d37 |
DEBUGGER_TEST_SERVER_SRCLIST = \
|
|
Timotheus Pokorra |
4c55d37 |
$(top_srcdir)/test/framework/DebuggerTestServer.cs
|
|
Timotheus Pokorra |
4c55d37 |
@@ -349,10 +349,7 @@
|
|
Timotheus Pokorra |
4c55d37 |
DEBUGGER_TEST_SERVER_DEPS = \
|
|
Timotheus Pokorra |
4c55d37 |
-r:Mono.Debugger.Test.Framework.dll \
|
|
Timotheus Pokorra |
4c55d37 |
-r:System.Runtime.Remoting \
|
|
Timotheus Pokorra |
4c55d37 |
- -r:nunit.framework \
|
|
Timotheus Pokorra |
4c55d37 |
- -r:nunit.core \
|
|
Timotheus Pokorra |
4c55d37 |
- -r:nunit.core.interfaces \
|
|
Timotheus Pokorra |
4c55d37 |
- -r:nunit.util
|
|
Timotheus Pokorra |
4c55d37 |
+ -pkg:nunit2
|
|
Timotheus Pokorra |
4c55d37 |
|
|
Timotheus Pokorra |
4c55d37 |
noinst_DATA = Mono.Debugger.dll.config
|
|
Timotheus Pokorra |
4c55d37 |
CLEANFILES = *.exe *.mdb mdb AssemblyInfo.cs Mono.Debugger.dll.config \
|
|
Timotheus Pokorra |
4c55d37 |
diff -uNr a/test/framework/DebuggerTestHost.cs b/test/framework/DebuggerTestHost.cs
|
|
Timotheus Pokorra |
4c55d37 |
--- a/test/framework/DebuggerTestHost.cs 2016-08-31 15:31:04.647118801 +0200
|
|
Timotheus Pokorra |
4c55d37 |
+++ b/test/framework/DebuggerTestHost.cs 2016-08-31 15:31:04.811105523 +0200
|
|
Timotheus Pokorra |
4c55d37 |
@@ -72,7 +72,7 @@
|
|
Timotheus Pokorra |
4c55d37 |
}
|
|
Timotheus Pokorra |
4c55d37 |
}
|
|
Timotheus Pokorra |
4c55d37 |
|
|
Timotheus Pokorra |
4c55d37 |
- public bool Run (TestInfo test, TestSuiteResult suite_result, string test_name, EventListener listener, ITestFilter filter, int timeout)
|
|
Timotheus Pokorra |
4c55d37 |
+ public bool Run (TestInfo test, TestResult suite_result, string test_name, EventListener listener, ITestFilter filter, int timeout)
|
|
Timotheus Pokorra |
4c55d37 |
{
|
|
Timotheus Pokorra |
4c55d37 |
listener = new ProxyListener (listener);
|
|
Timotheus Pokorra |
4c55d37 |
|
|
Timotheus Pokorra |
4c55d37 |
@@ -83,7 +83,7 @@
|
|
Timotheus Pokorra |
4c55d37 |
IAsyncResult ar = runner.BeginInvoke (test_name, null, filter, null, null);
|
|
Timotheus Pokorra |
4c55d37 |
|
|
Timotheus Pokorra |
4c55d37 |
if (!ar.AsyncWaitHandle.WaitOne (timeout) || !ar.IsCompleted) {
|
|
Timotheus Pokorra |
4c55d37 |
- TestCaseResult error = new TestCaseResult (test);
|
|
Timotheus Pokorra |
4c55d37 |
+ TestResult error = new TestResult (test);
|
|
Timotheus Pokorra |
4c55d37 |
string msg = String.Format ("Timeout after {0} ms", timeout);
|
|
Timotheus Pokorra |
4c55d37 |
error.Failure (msg, null, FailureSite.Parent);
|
|
Timotheus Pokorra |
4c55d37 |
suite_result.AddResult (error);
|
|
Timotheus Pokorra |
4c55d37 |
@@ -97,12 +97,12 @@
|
|
Timotheus Pokorra |
4c55d37 |
return true;
|
|
Timotheus Pokorra |
4c55d37 |
}
|
|
Timotheus Pokorra |
4c55d37 |
|
|
Timotheus Pokorra |
4c55d37 |
- TestCaseResult error = new TestCaseResult (test);
|
|
Timotheus Pokorra |
4c55d37 |
+ TestResult error = new TestResult (test);
|
|
Timotheus Pokorra |
4c55d37 |
error.Failure ("Unknown error", null, FailureSite.Parent);
|
|
Timotheus Pokorra |
4c55d37 |
suite_result.AddResult (error);
|
|
Timotheus Pokorra |
4c55d37 |
return false;
|
|
Timotheus Pokorra |
4c55d37 |
} catch (Exception ex) {
|
|
Timotheus Pokorra |
4c55d37 |
- TestCaseResult error = new TestCaseResult (test);
|
|
Timotheus Pokorra |
4c55d37 |
+ TestResult error = new TestResult (test);
|
|
Timotheus Pokorra |
4c55d37 |
string msg = String.Format ("Unknown exception: {0}", ex);
|
|
Timotheus Pokorra |
4c55d37 |
error.Failure (msg, null, FailureSite.Parent);
|
|
Timotheus Pokorra |
4c55d37 |
suite_result.AddResult (error);
|
|
Timotheus Pokorra |
4c55d37 |
diff -uNr a/test/framework/DebuggerTestServer.cs b/test/framework/DebuggerTestServer.cs
|
|
Timotheus Pokorra |
4c55d37 |
--- a/test/framework/DebuggerTestServer.cs 2016-08-31 15:31:04.647118801 +0200
|
|
Timotheus Pokorra |
4c55d37 |
+++ b/test/framework/DebuggerTestServer.cs 2016-08-31 15:31:04.823104551 +0200
|
|
Timotheus Pokorra |
4c55d37 |
@@ -59,7 +59,7 @@
|
|
Timotheus Pokorra |
4c55d37 |
{
|
|
Timotheus Pokorra |
4c55d37 |
public const string DebuggerTestFixtureAttribute = "Mono.Debugger.Tests.DebuggerTestFixtureAttribute";
|
|
Timotheus Pokorra |
4c55d37 |
|
|
Timotheus Pokorra |
4c55d37 |
- public override bool CanBuildFrom (Type type)
|
|
Timotheus Pokorra |
4c55d37 |
+ public bool CanBuildFrom (Type type)
|
|
Timotheus Pokorra |
4c55d37 |
{
|
|
Timotheus Pokorra |
4c55d37 |
return Reflect.HasAttribute (type, DebuggerTestFixtureAttribute, true);
|
|
Timotheus Pokorra |
4c55d37 |
}
|
|
Timotheus Pokorra |
4c55d37 |
diff -uNr a/test/framework/ProxyListener.cs b/test/framework/ProxyListener.cs
|
|
Timotheus Pokorra |
4c55d37 |
--- a/test/framework/ProxyListener.cs 2016-08-31 15:31:04.647118801 +0200
|
|
Timotheus Pokorra |
4c55d37 |
+++ b/test/framework/ProxyListener.cs 2016-08-31 15:31:04.759109733 +0200
|
|
Timotheus Pokorra |
4c55d37 |
@@ -34,7 +34,7 @@
|
|
Timotheus Pokorra |
4c55d37 |
listener.TestStarted (test_name);
|
|
Timotheus Pokorra |
4c55d37 |
}
|
|
Timotheus Pokorra |
4c55d37 |
|
|
Timotheus Pokorra |
4c55d37 |
- public void TestFinished (TestCaseResult result)
|
|
Timotheus Pokorra |
4c55d37 |
+ public void TestFinished (TestResult result)
|
|
Timotheus Pokorra |
4c55d37 |
{
|
|
Timotheus Pokorra |
4c55d37 |
listener.TestFinished (result);
|
|
Timotheus Pokorra |
4c55d37 |
}
|
|
Timotheus Pokorra |
4c55d37 |
@@ -44,7 +44,7 @@
|
|
Timotheus Pokorra |
4c55d37 |
listener.SuiteStarted (test_name);
|
|
Timotheus Pokorra |
4c55d37 |
}
|
|
Timotheus Pokorra |
4c55d37 |
|
|
Timotheus Pokorra |
4c55d37 |
- public void SuiteFinished (TestSuiteResult result)
|
|
Timotheus Pokorra |
4c55d37 |
+ public void SuiteFinished (TestResult result)
|
|
Timotheus Pokorra |
4c55d37 |
{
|
|
Timotheus Pokorra |
4c55d37 |
listener.SuiteFinished (result);
|
|
Timotheus Pokorra |
4c55d37 |
}
|
|
Timotheus Pokorra |
4c55d37 |
diff -uNr a/test/testsuite/NUnitAddIn.cs b/test/testsuite/NUnitAddIn.cs
|
|
Timotheus Pokorra |
4c55d37 |
--- a/test/testsuite/NUnitAddIn.cs 2016-08-31 15:31:04.651118477 +0200
|
|
Timotheus Pokorra |
4c55d37 |
+++ b/test/testsuite/NUnitAddIn.cs 2016-08-31 15:31:04.827104227 +0200
|
|
Timotheus Pokorra |
4c55d37 |
@@ -29,12 +29,12 @@
|
|
Timotheus Pokorra |
4c55d37 |
return true;
|
|
Timotheus Pokorra |
4c55d37 |
}
|
|
Timotheus Pokorra |
4c55d37 |
|
|
Timotheus Pokorra |
4c55d37 |
- public override bool CanBuildFrom (Type type)
|
|
Timotheus Pokorra |
4c55d37 |
+ public bool CanBuildFrom (Type type)
|
|
Timotheus Pokorra |
4c55d37 |
{
|
|
Timotheus Pokorra |
4c55d37 |
return Reflect.HasAttribute (type, DebuggerTestFixtureAttribute, false);
|
|
Timotheus Pokorra |
4c55d37 |
}
|
|
Timotheus Pokorra |
4c55d37 |
|
|
Timotheus Pokorra |
4c55d37 |
- protected override NUnit.Core.TestSuite MakeSuite (Type type)
|
|
Timotheus Pokorra |
4c55d37 |
+ protected NUnit.Core.TestSuite MakeSuite (Type type)
|
|
Timotheus Pokorra |
4c55d37 |
{
|
|
Timotheus Pokorra |
4c55d37 |
return new DebuggerTestSuite (type);
|
|
Timotheus Pokorra |
4c55d37 |
}
|
|
Timotheus Pokorra |
4c55d37 |
@@ -60,11 +60,11 @@
|
|
Timotheus Pokorra |
4c55d37 |
|
|
Timotheus Pokorra |
4c55d37 |
public override TestResult Run (EventListener listener, ITestFilter filter)
|
|
Timotheus Pokorra |
4c55d37 |
{
|
|
Timotheus Pokorra |
4c55d37 |
- TestSuiteResult suite_result = new TestSuiteResult (new TestInfo (this), TestName.FullName);
|
|
Timotheus Pokorra |
4c55d37 |
+ TestResult suite_result = new TestResult (new TestInfo (this));
|
|
Timotheus Pokorra |
4c55d37 |
|
|
Timotheus Pokorra |
4c55d37 |
DebuggerTestHost host = DebuggerTestHost.Create ();
|
|
Timotheus Pokorra |
4c55d37 |
if (host == null) {
|
|
Timotheus Pokorra |
4c55d37 |
- TestCaseResult error = new TestCaseResult (new TestInfo (this));
|
|
Timotheus Pokorra |
4c55d37 |
+ TestResult error = new TestResult (new TestInfo (this));
|
|
Timotheus Pokorra |
4c55d37 |
string msg = String.Format ("Failed to create DebuggerTestHost in {0}", FixtureType.Name);
|
|
Timotheus Pokorra |
4c55d37 |
error.Failure (msg, null, FailureSite.Parent);
|
|
Timotheus Pokorra |
4c55d37 |
suite_result.AddResult (error);
|