aboutsummaryrefslogtreecommitdiffstats
path: root/test/network/net_defaultgw3.exp
diff options
context:
space:
mode:
Diffstat (limited to 'test/network/net_defaultgw3.exp')
-rwxr-xr-xtest/network/net_defaultgw3.exp21
1 files changed, 21 insertions, 0 deletions
diff --git a/test/network/net_defaultgw3.exp b/test/network/net_defaultgw3.exp
new file mode 100755
index 000000000..a47324adc
--- /dev/null
+++ b/test/network/net_defaultgw3.exp
@@ -0,0 +1,21 @@
1#!/usr/bin/expect -f
2# This file is part of Firejail project
3# Copyright (C) 2014-2016 Firejail Authors
4# License GPL v2
5
6set timeout 10
7spawn $env(SHELL)
8match_max 100000
9
10# check ip address
11send -- "firejail --net=br0 --net=br1 --defaultgw=10.10.95.89\r"
12expect {
13 timeout {puts "TESTING ERROR 0\n";exit}
14 "default gateway 10.10.95.89 is not in the range of any network"
15}
16
17after 100
18
19
20puts "\n"
21