Commit 9168ea0
selftests: mptcp: fix wait_rm_addr/sf parameters
The second input parameter of 'wait_rm_addr/sf $1 1' is misused. If it's
1, wait_rm_addr/sf will never break, and will loop ten times, then
'wait_rm_addr/sf' equals to 'sleep 1'. This delay time is too long,
which can sometimes make the tests fail.
A better way to use wait_rm_addr/sf is to use rm_addr/sf_count to obtain
the current value, and then pass into wait_rm_addr/sf.
Fixes: 4369c19 ("selftests: mptcp: test userspace pm out of transfer")
Cc: stable@vger.kernel.org
Suggested-by: Matthieu Baerts <matttbe@kernel.org>
Reviewed-by: Matthieu Baerts <matttbe@kernel.org>
Signed-off-by: Geliang Tang <geliang.tang@suse.com>
Signed-off-by: Mat Martineau <martineau@kernel.org>
Link: https://lore.kernel.org/r/20231025-send-net-next-20231025-v1-2-db8f25f798eb@kernel.org
Signed-off-by: Jakub Kicinski <kuba@kernel.org>1 parent f4a75e9 commit 9168ea0
1 file changed
Lines changed: 10 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3289 | 3289 | | |
3290 | 3290 | | |
3291 | 3291 | | |
| 3292 | + | |
3292 | 3293 | | |
3293 | 3294 | | |
3294 | 3295 | | |
| |||
3298 | 3299 | | |
3299 | 3300 | | |
3300 | 3301 | | |
| 3302 | + | |
| 3303 | + | |
3301 | 3304 | | |
3302 | 3305 | | |
3303 | 3306 | | |
3304 | | - | |
3305 | | - | |
| 3307 | + | |
| 3308 | + | |
3306 | 3309 | | |
3307 | 3310 | | |
3308 | 3311 | | |
| |||
3324 | 3327 | | |
3325 | 3328 | | |
3326 | 3329 | | |
| 3330 | + | |
3327 | 3331 | | |
3328 | 3332 | | |
3329 | 3333 | | |
3330 | 3334 | | |
3331 | 3335 | | |
3332 | 3336 | | |
| 3337 | + | |
| 3338 | + | |
3333 | 3339 | | |
3334 | 3340 | | |
3335 | 3341 | | |
3336 | | - | |
3337 | | - | |
| 3342 | + | |
| 3343 | + | |
3338 | 3344 | | |
3339 | 3345 | | |
3340 | 3346 | | |
| |||
0 commit comments