summaryrefslogtreecommitdiff
path: root/extra/testing.exp
diff options
context:
space:
mode:
authorThomas Habets <thomas@habets.se>2014-05-29 17:09:04 +0100
committerThomas Habets <thomas@habets.se>2014-05-29 17:09:04 +0100
commitfd64a9c8b77d6992fa746f49ab987b4fcf2f5953 (patch)
treea20b430a79215baf3b036829e7680ca53c05ea08 /extra/testing.exp
parent3246791c659e3fc325cba42b6f938513a444697a (diff)
downloadarping-fd64a9c8b77d6992fa746f49ab987b4fcf2f5953.tar.gz
Strip endlines from libnet error messages.
Diffstat (limited to 'extra/testing.exp')
-rwxr-xr-xextra/testing.exp8
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