Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Fix issue with tests, see #9617 (#9622)
* Ignore NCrunch temp files and local user files

* Showing only failing line in ExprTests, cleanup temp files

* Show sensible message when UnresolvedPathReferenceNoRange is raised by tests

* Attempt to re-enable two base tests, may need to be re-disabled for Mono

* Cleanup tests that use global state, ensure deletion of temp files

* Fix difference Mono, fix spacing difference CI vs VS IDE

* Normalize null vs None

* Fix next issue difference between CI and local

* Make sure both smoke tests use the same filterhack function

* Next fix, overlooked

* Add procid and threadid to temp file

* Move #r System.Numerics to mkStandardProjectReferences

* Cleanup

* Fix tests that actually count references and are dependent on Common.fs
  • Loading branch information
abelbraaksma authored Jul 21, 2020
commit 91d598e4770da4b0426f0d87c2a5f224193182f8
4 changes: 4 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -134,3 +134,7 @@ msbuild.binlog
/tests/fsharp/regression/5531/compilation.output.test.txt
/tests/fsharp/core/fsfromfsviacs/compilation.langversion.old.output.txt
/tests/fsharp/core/fsfromfsviacs/compilation.errors.output.txt
*ncrunch*.user
_NCrunch_*
.*crunch*.local.xml
nCrunchTemp_*
7 changes: 6 additions & 1 deletion src/fsharp/ErrorLogger.fs
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,12 @@ exception PossibleUnverifiableCode of range

exception UnresolvedReferenceNoRange of (*assemblyName*) string
exception UnresolvedReferenceError of (*assemblyName*) string * range
exception UnresolvedPathReferenceNoRange of (*assemblyName*) string * (*path*) string
exception UnresolvedPathReferenceNoRange of (*assemblyName*) string * (*path*) string with
override this.Message =
match this :> exn with
| UnresolvedPathReferenceNoRange(assemblyName, path) -> sprintf "Assembly: %s, full path: %s" assemblyName path
| _ -> "impossible"

exception UnresolvedPathReference of (*assemblyName*) string * (*path*) string * range


Expand Down
1 change: 1 addition & 0 deletions tests/service/Common.fs
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,7 @@ let mkStandardProjectReferences () =
[ yield sysLib "mscorlib"
yield sysLib "System"
yield sysLib "System.Core"
yield sysLib "System.Numerics"
yield fsCoreDefaultReference() ]
#endif

Expand Down
Loading