chiark / gitweb /
test: Consolidate program name in argl
authorIan Jackson <ijackson@chiark.greenend.org.uk>
Sat, 12 Oct 2019 12:22:45 +0000 (13:22 +0100)
committerIan Jackson <ijackson@chiark.greenend.org.uk>
Sat, 12 Oct 2019 22:29:26 +0000 (23:29 +0100)
This avoids pratting about with the weird way execl takes its
arguments.  No functional change.

Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
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]
 }