Skip to content

Commit

Permalink
fix topt_no_cursor.nim (#20791)
Browse files Browse the repository at this point in the history
  • Loading branch information
bung87 authored Nov 9, 2022
1 parent 8fcb938 commit 82e99f2
Showing 1 changed file with 22 additions and 11 deletions.
33 changes: 22 additions & 11 deletions tests/arc/topt_no_cursor.nim
Original file line number Diff line number Diff line change
@@ -1,16 +1,12 @@
discard """
output: '''(package: "", ext: "meo")
doing shady stuff...
3
6
(@[1], @[2])
192.168.0.1
192.168.0.1
192.168.0.1
192.168.0.1'''
cmd: '''nim c --gc:arc --expandArc:newTarget --expandArc:delete --expandArc:p1 --expandArc:tt --hint:Performance:off --assertions:off --expandArc:extractConfig --expandArc:mergeShadowScope --expandArc:check $file'''
nimoutFull: true
cmd: '''nim c -r --warnings:off --hints:off --gc:arc --expandArc:newTarget --expandArc:delete --expandArc:p1 --expandArc:tt --hint:Performance:off --assertions:off --expandArc:extractConfig --expandArc:mergeShadowScope --expandArc:check $file'''
nimout: '''--expandArc: newTarget
var
splat
:tmp
:tmp_1
splat = splitDrive do:
let blitTmp = path
blitTmp
Expand Down Expand Up @@ -101,6 +97,7 @@ try:
`=destroy`(splitted)
finally:
`=destroy_1`(lan_ip)
-- end of expandArc ------------------------
--expandArc: mergeShadowScope
var shadowScope
Expand Down Expand Up @@ -150,7 +147,21 @@ if dirExists(par.dir):
else:
`=sink`(this.matchDirs, [])
`=destroy`(par)
-- end of expandArc ------------------------'''
-- end of expandArc ------------------------
--expandArc: check
check(this)
-- end of expandArc ------------------------
(package: "", ext: "meo")
doing shady stuff...
3
6
(@[1], @[2])
192.168.0.1
192.168.0.1
192.168.0.1
192.168.0.1
'''
"""

import os, std/private/ntpath
Expand Down

0 comments on commit 82e99f2

Please sign in to comment.