Skip to content

Commit

Permalink
Merge conflict and fix Verification.PassesOrFailFast
Browse files Browse the repository at this point in the history
  • Loading branch information
jcouv committed Oct 6, 2022
1 parent 40be908 commit e0f2dd2
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 8 deletions.
8 changes: 1 addition & 7 deletions src/Compilers/CSharp/Test/Emit2/Emit/NumericIntPtrTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -9004,14 +9004,8 @@ static void Main()
var refA = comp.EmitToImageReference();
comp = CreateCompilation(sourceB, references: new[] { refA }, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular9, targetFramework: TargetFramework.Net70);

<<<<<<< HEAD
CompileAndVerify(comp, verify: Verification.FailsPEVerify, expectedOutput: IncludeExpectedOutput(expectedResult));
||||||| c47866ea2d9
CompileAndVerify(comp, expectedOutput: expectedResult);
=======
// Investigating flaky IL verification issue. Tracked by https://github.com/dotnet/roslyn/issues/63782
CompileAndVerify(comp, expectedOutput: expectedResult, verify: Verification.PassesOrFailFast);
>>>>>>> dotnet/main
CompileAndVerify(comp, verify: Verification.PassesOrFailFast | Verification.FailsPEVerify, expectedOutput: IncludeExpectedOutput(expectedResult));
Assert.NotNull(expectedResult);
}

Expand Down
2 changes: 1 addition & 1 deletion src/Compilers/Test/Core/CompilationVerifier.cs
Original file line number Diff line number Diff line change
Expand Up @@ -234,7 +234,7 @@ public void Emit(
ILVerify(peVerify);
#endif
}
catch (Exception) when (peVerify is Verification.PassesOrFailFast)
catch (Exception) when ((peVerify & Verification.PassesOrFailFast) != 0)
{
var il = DumpIL();
Console.WriteLine(il);
Expand Down

0 comments on commit e0f2dd2

Please sign in to comment.