[sdb] Avoid running tests in the 2.0 profile.
authorZoltan Varga <vargaz@gmail.com>
Fri, 27 Jun 2014 00:01:47 +0000 (02:01 +0200)
committerZoltan Varga <vargaz@gmail.com>
Fri, 27 Jun 2014 00:02:16 +0000 (02:02 +0200)
mcs/class/Mono.Debugger.Soft/Makefile

index 57e2b054b131b37aaa199943227d0bc840a2865d..1c4dd2792a7ff8f0fcc29eda6d231ac2c7daa429 100644 (file)
@@ -8,6 +8,11 @@ LIB_MCS_FLAGS = /r:$(corlib) /r:System.dll /r:Mono.Cecil.dll /r:System.Core.dll
 
 TEST_MCS_FLAGS = /r:Mono.Cecil.dll /r:System.dll /r:System.Core.dll
 
+VALID_TEST_PROFILE := $(filter net_4_5, $(PROFILE))
+
+# The test exe is not profile specific, and compiling a 2.0 will make the 4.5 tests fail
+ifdef VALID_TEST_PROFILE
+
 test-local: dtest-app.exe dtest-excfilter.exe
 
 dtest-app.exe: Test/dtest-app.cs
@@ -16,6 +21,13 @@ dtest-app.exe: Test/dtest-app.cs
 dtest-excfilter.exe: Test/dtest-excfilter.il
        MONO_PATH=$(topdir)/class/lib/$(PROFILE) $(INTERNAL_ILASM) -out:$@ /exe /debug Test/dtest-excfilter.il
 
+else
+
+NO_TEST=1
+check:
+
+endif
+
 CLEAN_FILES = dtest-app.exe dtest-app.exe.mdb dtest-excfilter.exe dtest-excfilter.exe.mdb
 
 EXTRA_DISTFILES = \