Skip to content
This repository was archived by the owner on Jan 23, 2023. It is now read-only.

Commit 382874f

Browse files
Fixing up some issues with the HWIntrinsic test templates (#21104)
* Updating the VectorNotSupportedTest to throw on failure * Updating the HWIntrinsic test templates to check success on a per-scenario basis * Regenerating the templated HWIntrinsic tests
1 parent e5ff280 commit 382874f

File tree

1,472 files changed

+16386
-6348
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

1,472 files changed

+16386
-6348
lines changed

tests/src/JIT/HardwareIntrinsics/General/NotSupported/Vector128BooleanAsByte.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,8 @@ private static void Vector128BooleanAsByte()
3535
{
3636
TestLibrary.TestFramework.LogInformation($"Vector128BooleanAsByte: RunNotSupportedScenario failed to throw NotSupportedException.");
3737
TestLibrary.TestFramework.LogInformation(string.Empty);
38+
39+
throw new Exception("One or more scenarios did not complete as expected.");
3840
}
3941
}
4042
}

tests/src/JIT/HardwareIntrinsics/General/NotSupported/Vector128BooleanAsDouble.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,8 @@ private static void Vector128BooleanAsDouble()
3535
{
3636
TestLibrary.TestFramework.LogInformation($"Vector128BooleanAsDouble: RunNotSupportedScenario failed to throw NotSupportedException.");
3737
TestLibrary.TestFramework.LogInformation(string.Empty);
38+
39+
throw new Exception("One or more scenarios did not complete as expected.");
3840
}
3941
}
4042
}

tests/src/JIT/HardwareIntrinsics/General/NotSupported/Vector128BooleanAsGeneric_Boolean.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,8 @@ private static void Vector128BooleanAsGeneric_Boolean()
3535
{
3636
TestLibrary.TestFramework.LogInformation($"Vector128BooleanAsGeneric_Boolean: RunNotSupportedScenario failed to throw NotSupportedException.");
3737
TestLibrary.TestFramework.LogInformation(string.Empty);
38+
39+
throw new Exception("One or more scenarios did not complete as expected.");
3840
}
3941
}
4042
}

tests/src/JIT/HardwareIntrinsics/General/NotSupported/Vector128BooleanAsGeneric_Byte.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,8 @@ private static void Vector128BooleanAsGeneric_Byte()
3535
{
3636
TestLibrary.TestFramework.LogInformation($"Vector128BooleanAsGeneric_Byte: RunNotSupportedScenario failed to throw NotSupportedException.");
3737
TestLibrary.TestFramework.LogInformation(string.Empty);
38+
39+
throw new Exception("One or more scenarios did not complete as expected.");
3840
}
3941
}
4042
}

tests/src/JIT/HardwareIntrinsics/General/NotSupported/Vector128BooleanAsGeneric_Double.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,8 @@ private static void Vector128BooleanAsGeneric_Double()
3535
{
3636
TestLibrary.TestFramework.LogInformation($"Vector128BooleanAsGeneric_Double: RunNotSupportedScenario failed to throw NotSupportedException.");
3737
TestLibrary.TestFramework.LogInformation(string.Empty);
38+
39+
throw new Exception("One or more scenarios did not complete as expected.");
3840
}
3941
}
4042
}

tests/src/JIT/HardwareIntrinsics/General/NotSupported/Vector128BooleanAsGeneric_Int16.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,8 @@ private static void Vector128BooleanAsGeneric_Int16()
3535
{
3636
TestLibrary.TestFramework.LogInformation($"Vector128BooleanAsGeneric_Int16: RunNotSupportedScenario failed to throw NotSupportedException.");
3737
TestLibrary.TestFramework.LogInformation(string.Empty);
38+
39+
throw new Exception("One or more scenarios did not complete as expected.");
3840
}
3941
}
4042
}

tests/src/JIT/HardwareIntrinsics/General/NotSupported/Vector128BooleanAsGeneric_Int32.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,8 @@ private static void Vector128BooleanAsGeneric_Int32()
3535
{
3636
TestLibrary.TestFramework.LogInformation($"Vector128BooleanAsGeneric_Int32: RunNotSupportedScenario failed to throw NotSupportedException.");
3737
TestLibrary.TestFramework.LogInformation(string.Empty);
38+
39+
throw new Exception("One or more scenarios did not complete as expected.");
3840
}
3941
}
4042
}

tests/src/JIT/HardwareIntrinsics/General/NotSupported/Vector128BooleanAsGeneric_Int64.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,8 @@ private static void Vector128BooleanAsGeneric_Int64()
3535
{
3636
TestLibrary.TestFramework.LogInformation($"Vector128BooleanAsGeneric_Int64: RunNotSupportedScenario failed to throw NotSupportedException.");
3737
TestLibrary.TestFramework.LogInformation(string.Empty);
38+
39+
throw new Exception("One or more scenarios did not complete as expected.");
3840
}
3941
}
4042
}

tests/src/JIT/HardwareIntrinsics/General/NotSupported/Vector128BooleanAsGeneric_SByte.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,8 @@ private static void Vector128BooleanAsGeneric_SByte()
3535
{
3636
TestLibrary.TestFramework.LogInformation($"Vector128BooleanAsGeneric_SByte: RunNotSupportedScenario failed to throw NotSupportedException.");
3737
TestLibrary.TestFramework.LogInformation(string.Empty);
38+
39+
throw new Exception("One or more scenarios did not complete as expected.");
3840
}
3941
}
4042
}

tests/src/JIT/HardwareIntrinsics/General/NotSupported/Vector128BooleanAsGeneric_Single.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,8 @@ private static void Vector128BooleanAsGeneric_Single()
3535
{
3636
TestLibrary.TestFramework.LogInformation($"Vector128BooleanAsGeneric_Single: RunNotSupportedScenario failed to throw NotSupportedException.");
3737
TestLibrary.TestFramework.LogInformation(string.Empty);
38+
39+
throw new Exception("One or more scenarios did not complete as expected.");
3840
}
3941
}
4042
}

0 commit comments

Comments
 (0)