summary refs log tree commit diff stats
path: root/tests/stdlib/tstrtabs.nims
Commit message (Collapse)AuthorAgeFilesLines
* make more standard libraries work with `nimPreviewSlimSystem` (#20343)ringabout2022-09-271-1/+1
| | | | | | | | | | | | | | | | | | | | | | | * make more standard libraries work with `nimPreviewSlimSystem` * typo * part two * Delete specutils.nim * fixes more tests * more fixes * fixes tests * fixes three more tests * add formatfloat import * fix * last
* [FIX] strtabs interpolation in nimscript (#15172)haxscramper2020-08-091-0/+5
* [FIX] strtabs interpolation in nimscript * [TEST] Use `static` in strtabs test
0'>8d85809d6 ^
7f25db2dd ^
8d85809d6 ^



95188edf6 ^




1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23





                       


                                                                     
 
                                   

                                       
                               



                                       




                                                                         
discard """
  file: "texitcode.nim"
  output: ""
"""
import osproc, os

const filename = when defined(Windows): "tafalse.exe" else: "tafalse"
let dir = getCurrentDir() / "tests" / "osproc"
doAssert fileExists(dir / filename)

var p = startProcess(filename, dir)
doAssert(waitForExit(p) == QuitFailure)

p = startProcess(filename, dir)
var running = true
while running:
  running = running(p)
doAssert(waitForExit(p) == QuitFailure)

# make sure that first call to running() after process exit returns false
p = startProcess(filename, dir)
os.sleep(500)
doAssert(not running(p))