Skip to content

Infinite loop on bitcount not handled by tester.py #37

@sophiakolak

Description

@sophiakolak

So the bug in bitcount.py is in that n^=n-1 creates an infinite loop in the program.
When tester.py executes this program with the line return getattr(fx,algo)(*args), the tester program itself does not return.

In my own use of the Quixbugs project, I am just setting a time out that determines the cause of failure to be an infinite loop after some reasonable period, but I thought it was worth mentioning here for others using the project.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions