fix deprecations and other warnings (#13748)

This commit is contained in:
Miran 2020-03-25 19:15:34 +01:00 • committed by GitHub
commit 5b55aa52d0
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
22 changed files with 63 additions and 66 deletions

View file

@ -47,7 +47,7 @@ when defined(case_testfile): # compiled test file for child process
else:
import os, osproc, strutils, posix
import os, osproc, strutils
const nim = getCurrentCompilerExe()
block execShellCmdTest:
@ -74,7 +74,7 @@ else:
block execProcessTest:
let dir = parentDir(currentSourcePath())
let (outp, err) = execCmdEx(nim & " c " & quoteShell(dir / "osproctest.nim"))
let (_, err) = execCmdEx(nim & " c " & quoteShell(dir / "osproctest.nim"))
doAssert err == 0
let exePath = dir / addFileExt("osproctest", ExeExt)
let outStr1 = execProcess(exePath, workingDir = dir, args = ["foo",