Commit 18b9249
Make the disconnect tests prove what they claim
The two disconnect tests ran on a session that had never finished user
auth, so IsMessageAllowed() blocked the sends on its own and the "nothing
on the wire" assertions held even with the gates removed. Both now sit
past user auth. With only the shutdown gate reverted the test measures 72
bytes out and both teardown flags set, where before it measured nothing.
- wolfSSH_stream_peek() reports WS_DISCONNECT when the channel is gone,
the way wolfSSH_stream_read() already did; a missing channel used to
read as a bad argument on a session that had simply ended
- the drain test covers the no-channel case for both calls
Issue: F-88371 parent 5805256 commit 18b9249
2 files changed
Lines changed: 30 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1245 | 1245 | | |
1246 | 1246 | | |
1247 | 1247 | | |
1248 | | - | |
| 1248 | + | |
| 1249 | + | |
| 1250 | + | |
| 1251 | + | |
| 1252 | + | |
| 1253 | + | |
| 1254 | + | |
| 1255 | + | |
| 1256 | + | |
1249 | 1257 | | |
| 1258 | + | |
1250 | 1259 | | |
1251 | 1260 | | |
1252 | 1261 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3023 | 3023 | | |
3024 | 3024 | | |
3025 | 3025 | | |
| 3026 | + | |
| 3027 | + | |
| 3028 | + | |
| 3029 | + | |
| 3030 | + | |
| 3031 | + | |
| 3032 | + | |
| 3033 | + | |
| 3034 | + | |
| 3035 | + | |
| 3036 | + | |
| 3037 | + | |
| 3038 | + | |
| 3039 | + | |
3026 | 3040 | | |
3027 | 3041 | | |
3028 | 3042 | | |
| |||
3052 | 3066 | | |
3053 | 3067 | | |
3054 | 3068 | | |
| 3069 | + | |
| 3070 | + | |
| 3071 | + | |
3055 | 3072 | | |
3056 | 3073 | | |
3057 | 3074 | | |
| |||
3379 | 3396 | | |
3380 | 3397 | | |
3381 | 3398 | | |
| 3399 | + | |
| 3400 | + | |
| 3401 | + | |
3382 | 3402 | | |
3383 | 3403 | | |
3384 | 3404 | | |
| |||
0 commit comments