Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitcf5f80d

Browse files
committed
Fixing driver script for FSharp suite to properly handle paths with spaces (changeset 1234889)
1 parentf95ab9b commitcf5f80d

File tree

1 file changed

+9
-16
lines changed

1 file changed

+9
-16
lines changed

‎tests/fsharp/single-test-run.bat‎

Lines changed: 9 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -14,15 +14,14 @@ if errorlevel 1 (
1414
goto :ERROR
1515
)
1616

17-
REM NOTE: There is an expectation here that the full path to FSC, FSi and other tools be given.
18-
REM This is reasonable for testing, because you want to know exactly which binary you are running.
19-
REM Ideally we would use 'where' here, but WinXP does not support that.
20-
REM Trying do define my own WHERE
21-
22-
call :WHERE%FSC%
23-
iferrorlevel1goto :ERROR
24-
call :WHERE%FSI%
25-
iferrorlevel1goto :ERROR
17+
ifnotexist"%FSC%" (
18+
setERRORMSG=%ERRORMSG% fsc.exe not found at the location"%FSC%"
19+
goto :ERROR
20+
)
21+
ifnotexist"%FSI%" (
22+
setERRORMSG=%ERRORMSG% fsi.exe not found at the location"%FSI%"
23+
goto :ERROR
24+
)
2625

2726
setsources=
2827
ifexist testlib.fsi (set sources=%sources% testlib.fsi)
@@ -315,10 +314,4 @@ if NOT EXIST dont.use.wrapper.namespace (
315314
)
316315
)
317316
)
318-
goto :EOF
319-
320-
:WHERE
321-
for /f%%iin ("%~1")doset_WHERE=%%~$PATH:i
322-
ifnotdefined _WHEREsetERRORMSG=%ERRORMSG%%~1 not found;
323-
set _WHERE>NUL2>&1
324-
goto :EOF
317+
goto :EOF

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp