Browse Source

Stub in mangling tests with a failing Itanium compression test case.

pull/1/head
Alexander Corrado 14 years ago
parent
commit
d1231ca335
  1. 4
      tests/Makefile.am
  2. 16
      tests/ManglingTests.cs
  3. 8
      tests/Native/ManglingTests.cpp
  4. 5
      tests/Native/ManglingTests.h
  5. 3
      tests/Tests.csproj

4
tests/Makefile.am

@ -9,11 +9,13 @@ TEST_DLL = $(BUILD_DIR)/Test.dll @@ -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

16
tests/ManglingTests.cs

@ -0,0 +1,16 @@ @@ -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");
}
}
}

8
tests/Native/ManglingTests.cpp

@ -0,0 +1,8 @@ @@ -0,0 +1,8 @@
#include "ManglingTests.h"
#include <stdio.h>
void Mangling::CompressionTest1 (const Mangling* a1, const char* a2, const Mangling* a3, const char* a4)
{
printf ("CompressionTest1 mangled correctly");
}

5
tests/Native/ManglingTests.h

@ -0,0 +1,5 @@ @@ -0,0 +1,5 @@
class Mangling {
public:
static void CompressionTest1 (const Mangling* a1, const char* a2, const Mangling* a3, const char* a4);
};

3
tests/Tests.csproj

@ -54,6 +54,7 @@ @@ -54,6 +54,7 @@
<Compile Include="MarshalingTests.cs" />
<Compile Include="InheritanceTests.cs" />
<Compile Include="FieldTests.cs" />
<Compile Include="ManglingTests.cs" />
</ItemGroup>
<Import Project="$(MSBuildBinPath)\Microsoft.CSharp.targets" />
<ItemGroup>
@ -76,6 +77,8 @@ @@ -76,6 +77,8 @@
<None Include="Native\InheritanceTests.cpp" />
<None Include="Native\FieldTests.h" />
<None Include="Native\FieldTests.cpp" />
<None Include="Native\ManglingTests.h" />
<None Include="Native\ManglingTests.cpp" />
</ItemGroup>
<ProjectExtensions>
<MonoDevelop>

Loading…
Cancel
Save