mirror of
https://git.naxdy.org/Mirror/Ryujinx.git
synced 2025-01-09 20:29:11 +00:00
Convert misc tests to xUnit
This commit is contained in:
parent
2c755c6eec
commit
65d0bee674
2 changed files with 5 additions and 9 deletions
|
@ -4,7 +4,7 @@ using Xunit;
|
||||||
|
|
||||||
namespace Ryujinx.Tests.HLE
|
namespace Ryujinx.Tests.HLE
|
||||||
{
|
{
|
||||||
public class SoftwareKeyboardTests
|
public class SoftwareKeyboardFacts
|
||||||
{
|
{
|
||||||
[Fact]
|
[Fact]
|
||||||
public void StripUnicodeControlCodes_NullInput()
|
public void StripUnicodeControlCodes_NullInput()
|
||||||
|
|
|
@ -60,8 +60,7 @@ namespace Ryujinx.Tests.Memory
|
||||||
[InlineData(true)]
|
[InlineData(true)]
|
||||||
public void PartialUnmap(bool readOnly)
|
public void PartialUnmap(bool readOnly)
|
||||||
{
|
{
|
||||||
// Memory aliasing tests fail on CI at the moment.
|
Skip.If(OperatingSystem.IsMacOS(), "Memory aliasing tests fail on CI at the moment.");
|
||||||
Skip.If(OperatingSystem.IsMacOS());
|
|
||||||
|
|
||||||
// Set up an address space to test partial unmapping.
|
// Set up an address space to test partial unmapping.
|
||||||
// Should register the signal handler to deal with this on Windows.
|
// Should register the signal handler to deal with this on Windows.
|
||||||
|
@ -205,8 +204,7 @@ namespace Ryujinx.Tests.Memory
|
||||||
[SkippableFact]
|
[SkippableFact]
|
||||||
public unsafe void PartialUnmapNative()
|
public unsafe void PartialUnmapNative()
|
||||||
{
|
{
|
||||||
// Memory aliasing tests fail on CI at the moment.
|
Skip.If(OperatingSystem.IsMacOS(), "Memory aliasing tests fail on CI at the moment.");
|
||||||
Skip.If(OperatingSystem.IsMacOS());
|
|
||||||
|
|
||||||
// Set up an address space to test partial unmapping.
|
// Set up an address space to test partial unmapping.
|
||||||
// Should register the signal handler to deal with this on Windows.
|
// Should register the signal handler to deal with this on Windows.
|
||||||
|
@ -286,8 +284,7 @@ namespace Ryujinx.Tests.Memory
|
||||||
[SuppressMessage("Interoperability", "CA1416: Validate platform compatibility")]
|
[SuppressMessage("Interoperability", "CA1416: Validate platform compatibility")]
|
||||||
public void ThreadLocalMap()
|
public void ThreadLocalMap()
|
||||||
{
|
{
|
||||||
// Only test in Windows, as this is only used on Windows and uses Windows APIs for trimming.
|
Skip.IfNot(OperatingSystem.IsWindows(), "This is only used on Windows and uses Windows APIs for trimming");
|
||||||
Skip.IfNot(OperatingSystem.IsWindows());
|
|
||||||
|
|
||||||
PartialUnmapState.Reset();
|
PartialUnmapState.Reset();
|
||||||
ref var state = ref PartialUnmapState.GetRef();
|
ref var state = ref PartialUnmapState.GetRef();
|
||||||
|
@ -323,8 +320,7 @@ namespace Ryujinx.Tests.Memory
|
||||||
[SkippableFact]
|
[SkippableFact]
|
||||||
public unsafe void ThreadLocalMapNative()
|
public unsafe void ThreadLocalMapNative()
|
||||||
{
|
{
|
||||||
// Only test in Windows, as this is only used on Windows and uses Windows APIs for trimming.
|
Skip.IfNot(OperatingSystem.IsWindows(), "This is only used on Windows and uses Windows APIs for trimming");
|
||||||
Skip.IfNot(OperatingSystem.IsWindows());
|
|
||||||
|
|
||||||
EnsureTranslator();
|
EnsureTranslator();
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue