From d1231ca33555d35957d9c7d1fd03b4670099b935 Mon Sep 17 00:00:00 2001 From: Alexander Corrado Date: Sun, 21 Aug 2011 18:29:39 -0400 Subject: [PATCH] Stub in mangling tests with a failing Itanium compression test case. --- tests/Makefile.am | 4 +++- tests/ManglingTests.cs | 16 ++++++++++++++++ tests/Native/ManglingTests.cpp | 8 ++++++++ tests/Native/ManglingTests.h | 5 +++++ tests/Tests.csproj | 3 +++ 5 files changed, 35 insertions(+), 1 deletion(-) create mode 100644 tests/ManglingTests.cs create mode 100644 tests/Native/ManglingTests.cpp create mode 100644 tests/Native/ManglingTests.h diff --git a/tests/Makefile.am b/tests/Makefile.am index 1f8a50f9..7892923f 100644 --- a/tests/Makefile.am +++ b/tests/Makefile.am @@ -9,11 +9,13 @@ TEST_DLL = $(BUILD_DIR)/Test.dll NATIVE = \ MarshalingTests \ InheritanceTests \ - FieldTests + FieldTests \ + ManglingTests MANAGED = \ FieldTests.cs \ InheritanceTests.cs \ + ManglingTests.cs \ MarshalingTests.cs \ Support/CppNUnitAsserts.cs diff --git a/tests/ManglingTests.cs b/tests/ManglingTests.cs new file mode 100644 index 00000000..2b75bbe6 --- /dev/null +++ b/tests/ManglingTests.cs @@ -0,0 +1,16 @@ +using System; +using NUnit.Framework; + +namespace Tests { + + [TestFixture] + public class ManglingTests { + + [Test] + public void TestCompression1 () + { + Mangling.CompressionTest1 (null, "foo", null, "bar"); + } + } +} + diff --git a/tests/Native/ManglingTests.cpp b/tests/Native/ManglingTests.cpp new file mode 100644 index 00000000..b9d95749 --- /dev/null +++ b/tests/Native/ManglingTests.cpp @@ -0,0 +1,8 @@ + +#include "ManglingTests.h" +#include + +void Mangling::CompressionTest1 (const Mangling* a1, const char* a2, const Mangling* a3, const char* a4) +{ + printf ("CompressionTest1 mangled correctly"); +} diff --git a/tests/Native/ManglingTests.h b/tests/Native/ManglingTests.h new file mode 100644 index 00000000..b42c7113 --- /dev/null +++ b/tests/Native/ManglingTests.h @@ -0,0 +1,5 @@ + +class Mangling { +public: + static void CompressionTest1 (const Mangling* a1, const char* a2, const Mangling* a3, const char* a4); +}; \ No newline at end of file diff --git a/tests/Tests.csproj b/tests/Tests.csproj index 0fe937c7..59df7901 100644 --- a/tests/Tests.csproj +++ b/tests/Tests.csproj @@ -54,6 +54,7 @@ + @@ -76,6 +77,8 @@ + +