diff options
author | Thomas Habets <thomas@habets.se> | 2014-05-29 17:09:04 +0100 |
---|---|---|
committer | Thomas Habets <thomas@habets.se> | 2014-05-29 17:09:04 +0100 |
commit | fd64a9c8b77d6992fa746f49ab987b4fcf2f5953 (patch) | |
tree | a20b430a79215baf3b036829e7680ca53c05ea08 /extra/testing.exp | |
parent | 3246791c659e3fc325cba42b6f938513a444697a (diff) | |
download | arping-fd64a9c8b77d6992fa746f49ab987b4fcf2f5953.tar.gz |
Strip endlines from libnet error messages.
Diffstat (limited to 'extra/testing.exp')
-rwxr-xr-x | extra/testing.exp | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/extra/testing.exp b/extra/testing.exp index 4ddd796..f6fc303 100755 --- a/extra/testing.exp +++ b/extra/testing.exp @@ -81,6 +81,14 @@ Development repo: http://github.com/ThomasHabets/arping\r " expect eof +send_user -- "--------------- Bad interface ------------------\n" +spawn $bin -i uhtaonuhoes $ip +expect -re "arping: libnet_init.*No such device\r" +expect "\r" { + # Make sure double-endline is stripped. + exit 1 +} + send_user -- "--------------- Ping IP Simple ------------------\n" spawn $bin -c 1 $ip expect -re "ARPING $ip\r |