1 /*--------------------------------------------------------------------------
2 * expect makes the following simulation commands expect output
3 * this is for testing purposes. see ../tests
4 * (does not really make sense currently)
6 class CMD_EXPECT
: public CMD
{
11 void do_it(CS
& cmd
, CARD_LIST
* )
13 trace0("CMD_EXPECT::do_it");
14 unsigned here
= cmd
.cursor();
16 std::string file_name
;
18 CS
* file
= new CS(CS::_INC_FILE
, file_name
);
19 trace1( (" CMD_EXPECT::do_it > " +file_name
).c_str() , (long int)(OPT::language
) );
24 }catch (Exception_File_Open
& e
) {
25 cmd
.warn(bDANGER
, here
, e
.message() + '\n');
26 }catch (Exception_End_Of_Input
& e
) {
31 DISPATCHER
<CMD
>::INSTALL
d0x(&command_dispatcher
, "expect", &p0x
);