From: Ian Jackson Date: Sat, 12 Oct 2019 12:22:45 +0000 (+0100) Subject: test: Consolidate program name in argl X-Git-Tag: v0.5.0~108 X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ian/git?a=commitdiff_plain;h=d9cb092a885e3aae2307ce9f2101ca23438d432a;hp=0f3a091767b7b16f9ec570c699641dc229e54856;p=secnet.git test: Consolidate program name in argl This avoids pratting about with the weird way execl takes its arguments. No functional change. Signed-off-by: Ian Jackson --- diff --git a/test/invoke b/test/invoke index 09b18a3..569e7c3 100755 --- a/test/invoke +++ b/test/invoke @@ -102,10 +102,10 @@ proc spawn-secnet {which} { set ch [open $cf w] puts $ch [mkconf $which] close $ch - set argl [list -dvnc $cf] + set argl [list ./secnet -dvnc $cf] set pid [fork] if {!$pid} { - execl ./secnet $argl + execl [lindex $argl 0] [lrange $argl 1 end] } puts -nonewline $netlinkfh($which.t) [hbytes h2raw c0] }