Home | History | Annotate | Line # | Download | only in unit-tests
posix.exp revision 1.1
      1  1.1  apb Posix says we should execute the command as if run by system(3)
      2  1.1  apb Expect 'Hello,' and 'World!'
      3  1.1  apb Hello,
      4  1.1  apb World!
      5  1.1  apb a command
      6  1.1  apb a command prefixed by '+' executes even with -n
      7  1.1  apb another command
      8  1.1  apb make -n
      9  1.1  apb echo a command
     10  1.1  apb echo "a command prefixed by '+' executes even with -n"
     11  1.1  apb a command prefixed by '+' executes even with -n
     12  1.1  apb echo another command
     13  1.1  apb make -n -j1
     14  1.1  apb { echo a command
     15  1.1  apb } || exit $?
     16  1.1  apb echo "a command prefixed by '+' executes even with -n"
     17  1.1  apb a command prefixed by '+' executes even with -n
     18  1.1  apb { echo another command
     19  1.1  apb } || exit $?
     20  1.1  apb Now we expect an error...
     21  1.1  apb *** Error code 1 (continuing)
     22  1.1  apb `all' not remade because of errors.
     23  1.1  apb exit status 0
     24