chiark / gitweb /
test: Consolidate program name in argl
[secnet.git] / test / invoke
index 09b18a3154dd993458fb4de7832bead76c5b224f..569e7c39d9633f3d4a5d345655cd2636cbd9a877 100755 (executable)
@@ -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]
 }