Skip to content

Commit

Permalink
Use OutputCheck pattern to avoid file paths variance in CI
Browse files Browse the repository at this point in the history
  • Loading branch information
robin-aws committed Feb 28, 2023
1 parent 060c997 commit 5164558
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
3 changes: 2 additions & 1 deletion Test/wishlist/GoModule.dfy
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
// RUN: %exits-with 3 %dafny /compile:3 /unicodeChar:0 /spillTargetCode:2 "%s" /compileTarget:go 2> "%t"
// note: putting /compileTarget:go after "%s" overrides user-provided option
// RUN: %diff "%s.expect" "%t"
// RUN: %OutputCheck --file-to-check "%t" "%s"
// CHECK: GoModuleConversions.go:10:3: imported and not used: "net/url"

// This test used to work only because of a questionable Go-only feature
// of mapping a Dafny string directly to a Go string when passed in or out of
Expand Down
2 changes: 0 additions & 2 deletions Test/wishlist/GoModule.dfy.expect

This file was deleted.

0 comments on commit 5164558

Please sign in to comment.