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" ]
24 set my_host [exec hostname]
26 is [$f1 get] $my_host "hostname retuend ok via get"
30 is $ready_args $my_host "hostname returned ok via on_ready"