1 BEGIN { exec(tclsh => 't/tcl/harness.tcl' => $0) }
4 package require json::write
6 set connector [ten::connector::perl %AUTO%]
8 set conn [$connector connect]
11 $conn send call [ json::write string class_call_handler ] \
12 0 [ json::write string call ] \
13 [ json::write string Sys::Hostname ] [ json::write string hostname ]
18 $f1 on_ready [list apply {{name future} {set $name [$future get]}} "[namespace current]::ready_args" ]
22 is $ready_args [exec hostname] "hostname returned ok"