diff options
author | Marek Safar <marek.safar@gmail.com> | 2016-10-03 19:19:36 +0300 |
---|---|---|
committer | Marek Safar <marek.safar@gmail.com> | 2016-10-03 19:36:54 +0300 |
commit | 67a454ffab862b6dc05ad87c72d8e5dc18ab556f (patch) | |
tree | cbefe7b18ab90cf001032cefe1ba33738bd7ed6c /mcs/class/Mono.Debugger.Soft | |
parent | 993f805cb7f9c6d1887cfadddfc69377443452d7 (diff) |
[Mono.Debugger.Soft] Move TypeLoadClass types to new file to improve testing
Diffstat (limited to 'mcs/class/Mono.Debugger.Soft')
-rw-r--r-- | mcs/class/Mono.Debugger.Soft/Makefile | 3 | ||||
-rw-r--r-- | mcs/class/Mono.Debugger.Soft/Test/TypeLoadClass.cs | 11 | ||||
-rw-r--r-- | mcs/class/Mono.Debugger.Soft/Test/dtest-app.cs | 6 | ||||
-rw-r--r-- | mcs/class/Mono.Debugger.Soft/Test/dtest.cs | 2 |
4 files changed, 15 insertions, 7 deletions
diff --git a/mcs/class/Mono.Debugger.Soft/Makefile b/mcs/class/Mono.Debugger.Soft/Makefile index 1f20c1f89c6..e2fa98dcebe 100644 --- a/mcs/class/Mono.Debugger.Soft/Makefile +++ b/mcs/class/Mono.Debugger.Soft/Makefile @@ -16,7 +16,8 @@ VALID_TEST_PROFILE := $(filter net_4_x, $(PROFILE)) ifdef VALID_TEST_PROFILE TEST_HELPERS_SOURCES = \ - ../test-helpers/NetworkHelpers.cs + ../test-helpers/NetworkHelpers.cs \ + Test/TypeLoadClass.cs test-local: dtest-app.exe dtest-excfilter.exe diff --git a/mcs/class/Mono.Debugger.Soft/Test/TypeLoadClass.cs b/mcs/class/Mono.Debugger.Soft/Test/TypeLoadClass.cs new file mode 100644 index 00000000000..dfe4c3e1502 --- /dev/null +++ b/mcs/class/Mono.Debugger.Soft/Test/TypeLoadClass.cs @@ -0,0 +1,11 @@ + +class TypeLoadClass +{ + static TypeLoadClass () + { + } +} + +class TypeLoadClass2 +{ +}
\ No newline at end of file diff --git a/mcs/class/Mono.Debugger.Soft/Test/dtest-app.cs b/mcs/class/Mono.Debugger.Soft/Test/dtest-app.cs index 42a02d6f16f..532a6b207a1 100644 --- a/mcs/class/Mono.Debugger.Soft/Test/dtest-app.cs +++ b/mcs/class/Mono.Debugger.Soft/Test/dtest-app.cs @@ -1589,12 +1589,6 @@ public class Tests : TestsBase, ITest2 } } -class TypeLoadClass { -} - -class TypeLoadClass2 { -} - public class SentinelClass : MarshalByRefObject { } diff --git a/mcs/class/Mono.Debugger.Soft/Test/dtest.cs b/mcs/class/Mono.Debugger.Soft/Test/dtest.cs index 0eea592e2cf..af994790ea0 100644 --- a/mcs/class/Mono.Debugger.Soft/Test/dtest.cs +++ b/mcs/class/Mono.Debugger.Soft/Test/dtest.cs @@ -3601,6 +3601,8 @@ public class DebuggerTests return; string srcfile = (e as BreakpointEvent).Method.DeclaringType.GetSourceFiles (true)[0]; + srcfile = srcfile.Replace ("dtest-app.cs", "TypeLoadClass.cs"); + Assert.IsTrue (srcfile.Contains ("TypeLoadClass.cs")); var req = vm.CreateTypeLoadRequest (); req.SourceFileFilter = new string [] { srcfile.ToUpper () }; |