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

Commit f49bc5a

Browse files
abelbraaksmanosami
authored andcommitted
Fix issue with tests, see dotnet#9617 (dotnet#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
1 parent 36daada commit f49bc5a

File tree

6 files changed

+204
-88
lines changed

6 files changed

+204
-88
lines changed

.gitignore

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -134,3 +134,7 @@ msbuild.binlog
134134
/tests/fsharp/regression/5531/compilation.output.test.txt
135135
/tests/fsharp/core/fsfromfsviacs/compilation.langversion.old.output.txt
136136
/tests/fsharp/core/fsfromfsviacs/compilation.errors.output.txt
137+
*ncrunch*.user
138+
_NCrunch_*
139+
.*crunch*.local.xml
140+
nCrunchTemp_*

src/fsharp/ErrorLogger.fs

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,12 @@ exception PossibleUnverifiableCode of range
9191

9292
exception UnresolvedReferenceNoRange of (*assemblyName*) string
9393
exception UnresolvedReferenceError of (*assemblyName*) string * range
94-
exception UnresolvedPathReferenceNoRange of (*assemblyName*) string * (*path*) string
94+
exception UnresolvedPathReferenceNoRange of (*assemblyName*) string * (*path*) string with
95+
override this.Message =
96+
match this :> exn with
97+
| UnresolvedPathReferenceNoRange(assemblyName, path) -> sprintf "Assembly: %s, full path: %s" assemblyName path
98+
| _ -> "impossible"
99+
95100
exception UnresolvedPathReference of (*assemblyName*) string * (*path*) string * range
96101

97102

tests/service/Common.fs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -96,6 +96,7 @@ let mkStandardProjectReferences () =
9696
[ yield sysLib "mscorlib"
9797
yield sysLib "System"
9898
yield sysLib "System.Core"
99+
yield sysLib "System.Numerics"
99100
yield fsCoreDefaultReference() ]
100101
#endif
101102

0 commit comments

Comments
 (0)