run_test.pl

来自「ace开发环境 用来开发网络程序 其运用了设计模式、多平台、C++等多种知识」· PL 代码 · 共 41 行

PL
41
字号
eval '(exit $?0)' && eval 'exec perl -S $0 ${1+"$@"}'    & eval 'exec perl -S $0 $argv:q'    if 0;# $Id: run_test.pl 42194 2001-11-22 10:32:46Z crodrigu $# -*- perl -*-use lib "$ENV{ACE_ROOT}/bin";use PerlACE::Run_Test;$iorfile = PerlACE::LocalFile ("ior");unlink $iorfile;$status = 0;$CL = new PerlACE::Process ("diffserv_test", "localhost 20002");$SV = new PerlACE::Process ("server");$server = $SV->Spawn ();$SV->TimedWait(2);$client = $CL->SpawnWaitKill (200);if ($client != 0) {    $time = localtime;    print STDERR "ERROR: client returned $client at $time\n";    $status = 1;}$server = $SV->WaitKill (400);if ($server != 0) {    $time = localtime;    print STDERR "ERROR: server returned $server at $time\n";    $status = 1;}unlink $iorfile;exit $status;

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?