提交 6424eb87 编写于 作者: E enricosada 提交者: latkin

Clean up some tests

closes https://github.com/Microsoft/visualfsharp/pull/610

commit e3bcbbc79a9edb6ff44f9fff75115d0898570371
Author: enricosada <enrico@sada.io>
Date:   Tue Feb 10 18:47:05 2015 +0100

    test typeProvider/diamondAssembly was a false positive

commit 232dc65c99976736ee2698444b8a13b3b27a087f
Author: enricosada <enrico@sada.io>
Date:   Tue Feb 10 17:29:57 2015 +0100

    fix test

commit 987a6be1e581d1939114e9c5d284167c0a99f749
Author: enricosada <enrico@sada.io>
Date:   Thu Jan 22 20:10:32 2015 +0100

    compile core/quotes/cslib.dll

    the cslib.dll assembly should be compiled at test build phase, not added to repository

commit cc9cf3b8a7afb1033b020c753c648be91e8ff3fb
Author: enricosada <enrico@sada.io>
Date:   Thu Jan 22 19:35:26 2015 +0100

    remove useless log entry

    the log function is used to write errors to failures.log file, not info
上级 67adcf18
......@@ -2095,7 +2095,6 @@ let aa = if not failures.IsEmpty then exit 1 else stdout.WriteLine "Test Passed"
let _ =
if not failures.IsEmpty then (stdout.WriteLine("Test Failed, failures = {0}", failures); exit 1)
else (stdout.WriteLine "Test Passed";
log "ALL OK, HAPPY HOLIDAYS, MERRY CHRISTMAS!"
System.IO.File.WriteAllText("test.ok","ok");
// debug: why is the fsi test failing? is it because test.ok does not exist?
if System.IO.File.Exists("test.ok") then
......
......@@ -138,7 +138,6 @@ let aa =
let _ =
if not failures.IsEmpty then (stdout.WriteLine("Test Failed, failures = {0}", failures); exit 1)
else (stdout.WriteLine "Test Passed";
log "ALL OK, HAPPY HOLIDAYS, MERRY CHRISTMAS!"
System.IO.File.WriteAllText("test.ok","ok");
// debug: why is the fsi test failing? is it because test.ok does not exist?
if System.IO.File.Exists("test.ok") then
......
......@@ -633,7 +633,6 @@ let aa = if not failures.IsEmpty then exit 1 else stdout.WriteLine "Test Passed"
let _ =
if not failures.IsEmpty then (stdout.WriteLine("Test Failed, failures = {0}", failures); exit 1)
else (stdout.WriteLine "Test Passed";
log "ALL OK, HAPPY HOLIDAYS, MERRY CHRISTMAS!"
System.IO.File.WriteAllText("test.ok","ok");
// debug: why is the fsi test failing? is it because test.ok does not exist?
if System.IO.File.Exists("test.ok") then
......
......@@ -509,7 +509,8 @@ module MembersTest =
let s = 2.0f<kg>
let d = 2.0M<kg>
#if !NetCore
#if NetCore
#else
let tmpCulture = System.Threading.Thread.CurrentThread.CurrentCulture
System.Threading.Thread.CurrentThread.CurrentCulture <- System.Globalization.CultureInfo("en-US")
test "f" (f.ToString().Equals("2"))
......
......@@ -15,6 +15,8 @@ if NOT "%FSC:NOTAVAIL=X%" == "%FSC%" (
rem fsc.exe building
%CSC% /nologo /target:library /out:cslib.dll cslib.cs
@if ERRORLEVEL 1 goto Error
"%FSC%" %fsc_flags% -o:test.exe -r cslib.dll -g test.fsx
@if ERRORLEVEL 1 goto Error
......
......@@ -26,6 +26,7 @@ if exist test.ok (del /f /q test.ok)
dir test.ok > NUL 2>&1 ) || (
@echo :FSI load failed
set ERRORMSG=%ERRORMSG% FSI load failed;
goto :Error
)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册