+
Skip to content

Conversation

marc-hb
Copy link
Contributor

@marc-hb marc-hb commented Jan 24, 2023

Before commit 48b0d26, -j2 and -j -2 both triggered an infinite loop. That commit fixed the infinite loop but -j2 and -j -2 are still parsed the same. In the corresponding code review #657 Martin expressed an intent to change the parser and parse these differently in the future.

In commit 0ec3619 Martin added a "no infinite loop" test for "-j2". However this test will stop testing negative arguments when the parser changes (the test will also have to be adjusted when the parser changes).

Add one additional test with a "-j -3" argument that will test a negative argument forever.

Signed-off-by: Marc Herbert marc.herbert@intel.com

@marc-hb marc-hb marked this pull request as ready for review January 24, 2023 20:20
@marc-hb marc-hb requested a review from a team as a code owner January 24, 2023 20:20
@martin-schulze-vireso martin-schulze-vireso added this to the 1.10.0 milestone Feb 12, 2023
marc-hb and others added 2 commits March 4, 2023 21:59
Before commit 48b0d26, -j2 and -j -2 both triggered an infinite
loop. That commit fixed the infinite loop but -j2 and -j -2 are still
parsed the same. In the corresponding code review bats-core#657 Martin expressed
an intent to change the parser and parse these differently in the
future.

In commit 0ec3619 Martin added a "no infinite loop" test for
"-j2". However this test will stop testing negative arguments when the
parser changes (the test will also have to be adjusted when the parser
changes).

Add one additional test with a "-j -3" argument that will test a
negative argument forever.

Signed-off-by: Marc Herbert <marc.herbert@intel.com>
@martin-schulze-vireso
Copy link
Member

Thank you for your contribution.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants

点击 这是indexloc提供的php浏览器服务,不要输入任何密码和下载