projects
/
openvswitch
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
ovs-vsctl: Free memory on successful exit.
[openvswitch]
/
tests
/
reconnect.at
diff --git
a/tests/reconnect.at
b/tests/reconnect.at
index 225da0d495448e48bb889396d33a44bc078d5176..7c1cc6ab6733eb159c0e0d709c89736d53b63f07 100644
(file)
--- a/
tests/reconnect.at
+++ b/
tests/reconnect.at
@@
-6,7
+6,7
@@
AT_KEYWORDS([reconnect])
AT_DATA([input], [run
timeout
])
AT_DATA([input], [run
timeout
])
-
OVS_CHECK_LCOV
([test-reconnect < input], [0],
+
AT_CHECK
([test-reconnect < input], [0],
[### t=1000 ###
run
timeout
[### t=1000 ###
run
timeout
@@
-32,7
+32,7
@@
timeout
run
disconnected
])
run
disconnected
])
-
OVS_CHECK_LCOV
([test-reconnect < input], [0],
+
AT_CHECK
([test-reconnect < input], [0],
[### t=1000 ###
enable
in BACKOFF for 0 ms (0 ms backoff)
[### t=1000 ###
enable
in BACKOFF for 0 ms (0 ms backoff)
@@
-95,7
+95,7
@@
timeout
run
disconnected
])
run
disconnected
])
-
OVS_CHECK_LCOV
([test-reconnect < input], [0],
+
AT_CHECK
([test-reconnect < input], [0],
[### t=1000 ###
enable
in BACKOFF for 0 ms (0 ms backoff)
[### t=1000 ###
enable
in BACKOFF for 0 ms (0 ms backoff)
@@
-104,15
+104,14
@@
enable
run
should connect
connecting
run
should connect
connecting
- in CONNECT
ING
for 0 ms (0 ms backoff)
+ in CONNECT
_IN_PROGRESS
for 0 ms (0 ms backoff)
# Connect after 500 ms.
advance 500
### t=1500 ###
# Connect after 500 ms.
advance 500
### t=1500 ###
- in CONNECT
ING
for 500 ms (0 ms backoff)
+ in CONNECT
_IN_PROGRESS
for 500 ms (0 ms backoff)
run
run
- should connect
connected
in ACTIVE for 0 ms (0 ms backoff)
created 1000, last received 1000, last connected 1500
connected
in ACTIVE for 0 ms (0 ms backoff)
created 1000, last received 1000, last connected 1500
@@
-209,7
+208,7
@@
timeout
run
connect-failed
])
run
connect-failed
])
-
OVS_CHECK_LCOV
([test-reconnect < input], [0],
+
AT_CHECK
([test-reconnect < input], [0],
[### t=1000 ###
enable
in BACKOFF for 0 ms (0 ms backoff)
[### t=1000 ###
enable
in BACKOFF for 0 ms (0 ms backoff)
@@
-218,14
+217,13
@@
enable
run
should connect
connecting
run
should connect
connecting
- in CONNECT
ING
for 0 ms (0 ms backoff)
+ in CONNECT
_IN_PROGRESS
for 0 ms (0 ms backoff)
run
run
- should connect
timeout
advance 1000 ms
### t=2000 ###
timeout
advance 1000 ms
### t=2000 ###
- in CONNECT
ING
for 1000 ms (0 ms backoff)
+ in CONNECT
_IN_PROGRESS
for 1000 ms (0 ms backoff)
run
should disconnect
connect-failed
run
should disconnect
connect-failed
@@
-243,12
+241,12
@@
run
# Second connection attempt fails after 1000 ms.
connecting
# Second connection attempt fails after 1000 ms.
connecting
- in CONNECT
ING
for 0 ms (1000 ms backoff)
+ in CONNECT
_IN_PROGRESS
for 0 ms (1000 ms backoff)
timeout
advance 1000 ms
### t=4000 ###
timeout
advance 1000 ms
### t=4000 ###
- in CONNECT
ING
for 1000 ms (1000 ms backoff)
+ in CONNECT
_IN_PROGRESS
for 1000 ms (1000 ms backoff)
run
should disconnect
connect-failed
run
should disconnect
connect-failed
@@
-266,12
+264,12
@@
run
# Third connection attempt fails after 2000 ms.
connecting
# Third connection attempt fails after 2000 ms.
connecting
- in CONNECT
ING
for 0 ms (2000 ms backoff)
+ in CONNECT
_IN_PROGRESS
for 0 ms (2000 ms backoff)
timeout
advance 2000 ms
### t=8000 ###
timeout
advance 2000 ms
### t=8000 ###
- in CONNECT
ING
for 2000 ms (2000 ms backoff)
+ in CONNECT
_IN_PROGRESS
for 2000 ms (2000 ms backoff)
run
should disconnect
connect-failed
run
should disconnect
connect-failed
@@
-289,12
+287,12
@@
run
# Third connection attempt fails after 4000 ms.
connecting
# Third connection attempt fails after 4000 ms.
connecting
- in CONNECT
ING
for 0 ms (4000 ms backoff)
+ in CONNECT
_IN_PROGRESS
for 0 ms (4000 ms backoff)
timeout
advance 4000 ms
### t=16000 ###
timeout
advance 4000 ms
### t=16000 ###
- in CONNECT
ING
for 4000 ms (4000 ms backoff)
+ in CONNECT
_IN_PROGRESS
for 4000 ms (4000 ms backoff)
run
should disconnect
connect-failed
run
should disconnect
connect-failed
@@
-312,12
+310,12
@@
run
# Third connection attempt fails after 8000 ms.
connecting
# Third connection attempt fails after 8000 ms.
connecting
- in CONNECT
ING
for 0 ms (8000 ms backoff)
+ in CONNECT
_IN_PROGRESS
for 0 ms (8000 ms backoff)
timeout
advance 8000 ms
### t=32000 ###
timeout
advance 8000 ms
### t=32000 ###
- in CONNECT
ING
for 8000 ms (8000 ms backoff)
+ in CONNECT
_IN_PROGRESS
for 8000 ms (8000 ms backoff)
run
should disconnect
connect-failed
run
should disconnect
connect-failed
@@
-335,12
+333,12
@@
run
# Fourth connection attempt fails after 8000 ms.
connecting
# Fourth connection attempt fails after 8000 ms.
connecting
- in CONNECT
ING
for 0 ms (8000 ms backoff)
+ in CONNECT
_IN_PROGRESS
for 0 ms (8000 ms backoff)
timeout
advance 8000 ms
### t=48000 ###
timeout
advance 8000 ms
### t=48000 ###
- in CONNECT
ING
for 8000 ms (8000 ms backoff)
+ in CONNECT
_IN_PROGRESS
for 8000 ms (8000 ms backoff)
run
should disconnect
connect-failed
run
should disconnect
connect-failed
@@
-554,7
+552,7
@@
run
timeout
run
])
timeout
run
])
-
OVS_CHECK_LCOV
([test-reconnect < input], [0],
+
AT_CHECK
([test-reconnect < input], [0],
[### t=1000 ###
enable
in BACKOFF for 0 ms (0 ms backoff)
[### t=1000 ###
enable
in BACKOFF for 0 ms (0 ms backoff)
@@
-563,14
+561,13
@@
enable
run
should connect
connecting
run
should connect
connecting
- in CONNECT
ING
for 0 ms (0 ms backoff)
+ in CONNECT
_IN_PROGRESS
for 0 ms (0 ms backoff)
run
run
- should connect
timeout
advance 1000 ms
### t=2000 ###
timeout
advance 1000 ms
### t=2000 ###
- in CONNECT
ING
for 1000 ms (0 ms backoff)
+ in CONNECT
_IN_PROGRESS
for 1000 ms (0 ms backoff)
run
should disconnect
connect-failed
run
should disconnect
connect-failed
@@
-588,12
+585,12
@@
run
# Second connection attempt fails after 1000 ms.
connecting
# Second connection attempt fails after 1000 ms.
connecting
- in CONNECT
ING
for 0 ms (1000 ms backoff)
+ in CONNECT
_IN_PROGRESS
for 0 ms (1000 ms backoff)
timeout
advance 1000 ms
### t=4000 ###
timeout
advance 1000 ms
### t=4000 ###
- in CONNECT
ING
for 1000 ms (1000 ms backoff)
+ in CONNECT
_IN_PROGRESS
for 1000 ms (1000 ms backoff)
run
should disconnect
connect-failed
run
should disconnect
connect-failed
@@
-611,13
+608,12
@@
run
# Third connection attempt succeeds after 500 ms.
connecting
# Third connection attempt succeeds after 500 ms.
connecting
- in CONNECT
ING
for 0 ms (2000 ms backoff)
+ in CONNECT
_IN_PROGRESS
for 0 ms (2000 ms backoff)
advance 500
### t=6500 ###
advance 500
### t=6500 ###
- in CONNECT
ING
for 500 ms (2000 ms backoff)
+ in CONNECT
_IN_PROGRESS
for 500 ms (2000 ms backoff)
run
run
- should connect
connected
in ACTIVE for 0 ms (2000 ms backoff)
created 1000, last received 1000, last connected 6500
connected
in ACTIVE for 0 ms (2000 ms backoff)
created 1000, last received 1000, last connected 6500
@@
-699,7
+695,7
@@
run
timeout
run
])
timeout
run
])
-
OVS_CHECK_LCOV
([test-reconnect < input], [0],
+
AT_CHECK
([test-reconnect < input], [0],
[### t=1000 ###
enable
in BACKOFF for 0 ms (0 ms backoff)
[### t=1000 ###
enable
in BACKOFF for 0 ms (0 ms backoff)
@@
-708,14
+704,13
@@
enable
run
should connect
connecting
run
should connect
connecting
- in CONNECT
ING
for 0 ms (0 ms backoff)
+ in CONNECT
_IN_PROGRESS
for 0 ms (0 ms backoff)
run
run
- should connect
timeout
advance 1000 ms
### t=2000 ###
timeout
advance 1000 ms
### t=2000 ###
- in CONNECT
ING
for 1000 ms (0 ms backoff)
+ in CONNECT
_IN_PROGRESS
for 1000 ms (0 ms backoff)
run
should disconnect
connect-failed
run
should disconnect
connect-failed
@@
-733,12
+728,12
@@
run
# Second connection attempt fails after 1000 ms.
connecting
# Second connection attempt fails after 1000 ms.
connecting
- in CONNECT
ING
for 0 ms (1000 ms backoff)
+ in CONNECT
_IN_PROGRESS
for 0 ms (1000 ms backoff)
timeout
advance 1000 ms
### t=4000 ###
timeout
advance 1000 ms
### t=4000 ###
- in CONNECT
ING
for 1000 ms (1000 ms backoff)
+ in CONNECT
_IN_PROGRESS
for 1000 ms (1000 ms backoff)
run
should disconnect
connect-failed
run
should disconnect
connect-failed
@@
-756,13
+751,12
@@
run
# Third connection attempt succeeds after 500 ms.
connecting
# Third connection attempt succeeds after 500 ms.
connecting
- in CONNECT
ING
for 0 ms (2000 ms backoff)
+ in CONNECT
_IN_PROGRESS
for 0 ms (2000 ms backoff)
advance 500
### t=6500 ###
advance 500
### t=6500 ###
- in CONNECT
ING
for 500 ms (2000 ms backoff)
+ in CONNECT
_IN_PROGRESS
for 500 ms (2000 ms backoff)
run
run
- should connect
connected
in ACTIVE for 0 ms (2000 ms backoff)
created 1000, last received 1000, last connected 6500
connected
in ACTIVE for 0 ms (2000 ms backoff)
created 1000, last received 1000, last connected 6500
@@
-865,7
+859,7
@@
run
timeout
run
])
timeout
run
])
-
OVS_CHECK_LCOV
([test-reconnect < input], [0],
+
AT_CHECK
([test-reconnect < input], [0],
[### t=1000 ###
enable
in BACKOFF for 0 ms (0 ms backoff)
[### t=1000 ###
enable
in BACKOFF for 0 ms (0 ms backoff)
@@
-874,14
+868,13
@@
enable
run
should connect
connecting
run
should connect
connecting
- in CONNECT
ING
for 0 ms (0 ms backoff)
+ in CONNECT
_IN_PROGRESS
for 0 ms (0 ms backoff)
run
run
- should connect
timeout
advance 1000 ms
### t=2000 ###
timeout
advance 1000 ms
### t=2000 ###
- in CONNECT
ING
for 1000 ms (0 ms backoff)
+ in CONNECT
_IN_PROGRESS
for 1000 ms (0 ms backoff)
run
should disconnect
connect-failed
run
should disconnect
connect-failed
@@
-899,12
+892,12
@@
run
# Second connection attempt fails after 1000 ms.
connecting
# Second connection attempt fails after 1000 ms.
connecting
- in CONNECT
ING
for 0 ms (1000 ms backoff)
+ in CONNECT
_IN_PROGRESS
for 0 ms (1000 ms backoff)
timeout
advance 1000 ms
### t=4000 ###
timeout
advance 1000 ms
### t=4000 ###
- in CONNECT
ING
for 1000 ms (1000 ms backoff)
+ in CONNECT
_IN_PROGRESS
for 1000 ms (1000 ms backoff)
run
should disconnect
connect-failed
run
should disconnect
connect-failed
@@
-922,13
+915,12
@@
run
# Third connection attempt succeeds after 500 ms.
connecting
# Third connection attempt succeeds after 500 ms.
connecting
- in CONNECT
ING
for 0 ms (2000 ms backoff)
+ in CONNECT
_IN_PROGRESS
for 0 ms (2000 ms backoff)
advance 500
### t=6500 ###
advance 500
### t=6500 ###
- in CONNECT
ING
for 500 ms (2000 ms backoff)
+ in CONNECT
_IN_PROGRESS
for 500 ms (2000 ms backoff)
run
run
- should connect
connected
in ACTIVE for 0 ms (2000 ms backoff)
created 1000, last received 1000, last connected 6500
connected
in ACTIVE for 0 ms (2000 ms backoff)
created 1000, last received 1000, last connected 6500
@@
-1000,7
+992,7
@@
connect-failed ECONNREFUSED
run
timeout
])
run
timeout
])
-
OVS_CHECK_LCOV
([test-reconnect < input], [0],
+
AT_CHECK
([test-reconnect < input], [0],
[### t=1000 ###
enable
in BACKOFF for 0 ms (0 ms backoff)
[### t=1000 ###
enable
in BACKOFF for 0 ms (0 ms backoff)
@@
-1056,7
+1048,7
@@
timeout
run
disconnected
])
run
disconnected
])
-
OVS_CHECK_LCOV
([test-reconnect < input], [0],
+
AT_CHECK
([test-reconnect < input], [0],
[### t=1000 ###
set-max-tries 1
1 tries left
[### t=1000 ###
set-max-tries 1
1 tries left
@@
-1107,7
+1099,7
@@
enable
run
timeout
])
run
timeout
])
-
OVS_CHECK_LCOV
([test-reconnect < input], [0],
+
AT_CHECK
([test-reconnect < input], [0],
[### t=1000 ###
set-max-tries 0
0 tries left
[### t=1000 ###
set-max-tries 0
0 tries left