Add reflect.xml for a abstract* tests
authorSwaroop Sridhar <swaroops@microsoft.com>
Wed, 22 Mar 2017 22:22:46 +0000 (15:22 -0700)
committerSwaroop Sridhar <Swaroop.Sridhar@microsoft.com>
Thu, 23 Mar 2017 00:32:38 +0000 (17:32 -0700)
For the abstract* tests in question:
The tests check for TypeLoad exception from a derived class that doesn't implement an abstract method in base class.
However, the Linker removed the abstract method from base, so there is no exception.
Therefore, add reflect.xml to override the linker's behavior and enable testing for TypeLoadException.

Commit migrated from https://github.com/dotnet/coreclr/commit/f36d5b00cadd97983a917f130fd7da875e6f2c83

src/coreclr/tests/src/Loader/classloader/generics/Instantiation/Negative/abstract02.reflect.xml [new file with mode: 0644]
src/coreclr/tests/src/Loader/classloader/generics/Instantiation/Negative/abstract03.reflect.xml [new file with mode: 0644]
src/coreclr/tests/src/Loader/classloader/generics/Instantiation/Negative/abstract04.reflect.xml [new file with mode: 0644]

diff --git a/src/coreclr/tests/src/Loader/classloader/generics/Instantiation/Negative/abstract02.reflect.xml b/src/coreclr/tests/src/Loader/classloader/generics/Instantiation/Negative/abstract02.reflect.xml
new file mode 100644 (file)
index 0000000..237cb23
--- /dev/null
@@ -0,0 +1,5 @@
+<linker>
+    <assembly fullname="abstract02">
+        <type fullname="GenBase" required="true" />
+    </assembly>
+</linker>
diff --git a/src/coreclr/tests/src/Loader/classloader/generics/Instantiation/Negative/abstract03.reflect.xml b/src/coreclr/tests/src/Loader/classloader/generics/Instantiation/Negative/abstract03.reflect.xml
new file mode 100644 (file)
index 0000000..38bfab9
--- /dev/null
@@ -0,0 +1,5 @@
+<linker>
+    <assembly fullname="abstract03">
+        <type fullname="GenBase" required="true" />
+    </assembly>
+</linker>
diff --git a/src/coreclr/tests/src/Loader/classloader/generics/Instantiation/Negative/abstract04.reflect.xml b/src/coreclr/tests/src/Loader/classloader/generics/Instantiation/Negative/abstract04.reflect.xml
new file mode 100644 (file)
index 0000000..a780585
--- /dev/null
@@ -0,0 +1,5 @@
+<linker>
+    <assembly fullname="abstract04">
+        <type fullname="GenBase" required="true" />
+    </assembly>
+</linker>