Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

test_poll fails on FreeBSD 4.1 #33007

Closed
gvanrossum opened this issue Aug 29, 2000 · 3 comments
Closed

test_poll fails on FreeBSD 4.1 #33007

gvanrossum opened this issue Aug 29, 2000 · 3 comments
Assignees
Labels
extension-modules C modules in the Modules dir

Comments

@gvanrossum
Copy link
Member

BPO 213047
Nosy @gvanrossum, @akuchling

Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.

Show more details

GitHub fields:

assignee = 'https://github.com/akuchling'
closed_at = <Date 2000-08-29.17:00:44.000>
created_at = <Date 2000-08-29.15:51:25.000>
labels = ['extension-modules']
title = 'test_poll fails on FreeBSD 4.1'
updated_at = <Date 2000-08-29.17:00:44.000>
user = 'https://github.com/gvanrossum'

bugs.python.org fields:

activity = <Date 2000-08-29.17:00:44.000>
actor = 'gvanrossum'
assignee = 'akuchling'
closed = True
closed_date = None
closer = None
components = ['Extension Modules']
creation = <Date 2000-08-29.15:51:25.000>
creator = 'gvanrossum'
dependencies = []
files = []
hgrepos = []
issue_num = 213047
keywords = []
message_count = 3.0
messages = ['1134', '1135', '1136']
nosy_count = 2.0
nosy_names = ['gvanrossum', 'akuchling']
pr_nums = []
priority = 'normal'
resolution = None
stage = None
status = 'closed'
superseder = None
type = None
url = 'https://bugs.python.org/issue213047'
versions = []

@gvanrossum
Copy link
Member Author

We have a FreeBSD 4.1 system at BeOpen now, and when I build Python all tests succeed except for test_poll. The error is this assert in test_poll1():

assert len(buf) == MSG_LEN

When I add a print statement, len(buf) is zero.

Any suggestion as to what I should do next?

@gvanrossum gvanrossum added the extension-modules C modules in the Modules dir label Aug 29, 2000
@gvanrossum gvanrossum added the extension-modules C modules in the Modules dir label Aug 29, 2000
@akuchling
Copy link
Member

What the test is doing is creating a bunch of pipes,
writing the string MSG to them, and then reading them back. test_poll1() has just picked a random pipe that's ready for reading, and tried to read MSG_LEN bytes, but instead it
got back the empty string. Print the contents of the
'ready' list and of the 'ready_readers' list constructed from it; maybe find_ready_readers in the test module is buggy. (Or maybe this behaviour is legal for some reason,
and the assertion is too stringent.)

I could get a log in on the FreeBSD machine at SourceForge
and look into this.

The test_poll1() function was contributed by Jeremy, BTW,
so if he has access to your FreeBSD machine, he could
also look into it.

@gvanrossum
Copy link
Member Author

Fixed in record time by Andrew. Thanks, Andrew!

@ezio-melotti ezio-melotti transferred this issue from another repository Apr 9, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
extension-modules C modules in the Modules dir
Projects
None yet
Development

No branches or pull requests

2 participants