Skip to content

Commit

Permalink
Fixed CI + enhanced error reporting
Browse files Browse the repository at this point in the history
  • Loading branch information
MikaelMayer committed Jan 24, 2025
1 parent 61a457f commit 54e6ec2
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions Source/DafnyDriver/Legacy/SynchronousCliCompilation.cs
Original file line number Diff line number Diff line change
Expand Up @@ -292,12 +292,12 @@ public async Task<ExitValue> ProcessFilesAsync(IReadOnlyList<DafnyFile/*!*/>/*!*
bool verified;
PipelineOutcome outcome;
IDictionary<string, PipelineStatistics> moduleStats;
dafnyProgram.ProofDependencyManager = depManager;
if (!options.DafnyVerify) {
verified = false;
outcome = PipelineOutcome.Done;
moduleStats = new Dictionary<string, PipelineStatistics>();
} else {
dafnyProgram.ProofDependencyManager = depManager;
var boogiePrograms =
await DafnyMain.LargeStackFactory.StartNew(() => Translate(engine.Options, dafnyProgram).ToList());

Expand Down Expand Up @@ -338,7 +338,7 @@ public async Task<ExitValue> ProcessFilesAsync(IReadOnlyList<DafnyFile/*!*/>/*!*
}

var failBecauseOfDiagnostics = dafnyProgram.Reporter.FailCompilationMessage;
if (!verified) {
if (!verified && options.DafnyVerify) {
exitValue = ExitValue.VERIFICATION_ERROR;
} else if (!compiled) {
exitValue = ExitValue.COMPILE_ERROR;
Expand Down
2 changes: 1 addition & 1 deletion Source/TestDafny/MultiBackendTest.cs
Original file line number Diff line number Diff line change
Expand Up @@ -507,7 +507,7 @@ await output.WriteLineAsync(
}
await output.WriteLineAsync("Execution failed, for reasons other than known unsupported features. Output:");
await output.WriteLineAsync(outputString);
await output.WriteLineAsync("Error:");
await output.WriteLineAsync($"Error (code={exitCode}):");
await output.WriteLineAsync(error);
return exitCode;
}
Expand Down

0 comments on commit 54e6ec2

Please sign in to comment.