Commit d81cb0b
committed
gh-119461: Fix ThreadedVSOCKSocketStreamTest
Add socket.VMADDR_CID_LOCAL constant.
Fix ThreadedVSOCKSocketStreamTest: if get_cid() returns the host
address or the "any" address, use the local communication address
(loopback): VMADDR_CID_LOCAL.
On Linux 6.9, apparently, the /dev/vsock device is now available but
get_cid() returns VMADDR_CID_ANY (-1).1 parent 406ffb5 commit d81cb0b
File tree
3 files changed
+8
-4
lines changed- Lib/test
- Misc/NEWS.d/next/Library
- Modules
3 files changed
+8
-4
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
160 | 160 | | |
161 | 161 | | |
162 | 162 | | |
163 | | - | |
164 | | - | |
| 163 | + | |
| 164 | + | |
165 | 165 | | |
166 | 166 | | |
167 | 167 | | |
| |||
520 | 520 | | |
521 | 521 | | |
522 | 522 | | |
523 | | - | |
524 | | - | |
525 | 523 | | |
526 | 524 | | |
527 | 525 | | |
| |||
543 | 541 | | |
544 | 542 | | |
545 | 543 | | |
| 544 | + | |
| 545 | + | |
| 546 | + | |
546 | 547 | | |
547 | 548 | | |
548 | 549 | | |
| |||
2515 | 2516 | | |
2516 | 2517 | | |
2517 | 2518 | | |
| 2519 | + | |
2518 | 2520 | | |
2519 | 2521 | | |
2520 | 2522 | | |
| |||
Lines changed: 1 addition & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
7596 | 7596 | | |
7597 | 7597 | | |
7598 | 7598 | | |
| 7599 | + | |
7599 | 7600 | | |
7600 | 7601 | | |
7601 | 7602 | | |
| |||
0 commit comments