<feed xmlns='http://www.w3.org/2005/Atom'>
<title>ruby.git/test/irb/test_debug_cmd.rb, branch v3_2_11</title>
<subtitle>The Ruby Programming Language</subtitle>
<link rel='alternate' type='text/html' href='https://git.ruby-lang.org/ruby.git/'/>
<entry>
<title>[ruby/irb] PTY module is platform dependent</title>
<updated>2022-12-19T08:49:59+00:00</updated>
<author>
<name>Nobuyoshi Nakada</name>
<email>nobu@ruby-lang.org</email>
</author>
<published>2022-12-19T08:29:21+00:00</published>
<link rel='alternate' type='text/html' href='https://git.ruby-lang.org/ruby.git/commit/?id=1148636e3dfb3aa25485b6e5cf40c043df848c07'/>
<id>1148636e3dfb3aa25485b6e5cf40c043df848c07</id>
<content type='text'>
https://github.com/ruby/irb/commit/dbb3dc72ff
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
https://github.com/ruby/irb/commit/dbb3dc72ff
</pre>
</div>
</content>
</entry>
<entry>
<title>[ruby/irb] Fix step command (https://github.com/ruby/irb/pull/477)</title>
<updated>2022-12-09T23:39:17+00:00</updated>
<author>
<name>Stan Lo</name>
<email>stan.lo@shopify.com</email>
</author>
<published>2022-12-09T23:39:12+00:00</published>
<link rel='alternate' type='text/html' href='https://git.ruby-lang.org/ruby.git/commit/?id=381e128c135e491689714cb69353d11e782f5994'/>
<id>381e128c135e491689714cb69353d11e782f5994</id>
<content type='text'>
The current `next` pre-command workaround on IRB source stepping
moves the location by 1 extra line. A better way is to make `debug`
skip IRB frames completely, which is what this commit does.

It also fixes the step command's test. The `|` in regexp was not escaped
so it was always incorrectly matched.</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
The current `next` pre-command workaround on IRB source stepping
moves the location by 1 extra line. A better way is to make `debug`
skip IRB frames completely, which is what this commit does.

It also fixes the step command's test. The `|` in regexp was not escaped
so it was always incorrectly matched.</pre>
</div>
</content>
</entry>
<entry>
<title>[ruby/irb] Kill PTY process after test is finished</title>
<updated>2022-12-08T19:11:51+00:00</updated>
<author>
<name>Stan Lo</name>
<email>stan.lo@shopify.com</email>
</author>
<published>2022-12-08T19:11:47+00:00</published>
<link rel='alternate' type='text/html' href='https://git.ruby-lang.org/ruby.git/commit/?id=a87f802f1ecc2f1442f4590dc58068a72f68eae9'/>
<id>a87f802f1ecc2f1442f4590dc58068a72f68eae9</id>
<content type='text'>
(https://github.com/ruby/irb/pull/471)

The killing/waiting logic is borrowed from ruby/debug:

https://github.com/ruby/debug/blob/ec5ae5aebd61a99dc84028d8dffa8e7e165c1ec6/test/support/test_case.rb#L107-L136</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
(https://github.com/ruby/irb/pull/471)

The killing/waiting logic is borrowed from ruby/debug:

https://github.com/ruby/debug/blob/ec5ae5aebd61a99dc84028d8dffa8e7e165c1ec6/test/support/test_case.rb#L107-L136</pre>
</div>
</content>
</entry>
<entry>
<title>[ruby/irb] Close leaked pty IOs</title>
<updated>2022-12-05T12:03:57+00:00</updated>
<author>
<name>Nobuyoshi Nakada</name>
<email>nobu@ruby-lang.org</email>
</author>
<published>2022-12-05T10:31:18+00:00</published>
<link rel='alternate' type='text/html' href='https://git.ruby-lang.org/ruby.git/commit/?id=74923aaf31ae49cd372f2fe54baa4115a20bfe76'/>
<id>74923aaf31ae49cd372f2fe54baa4115a20bfe76</id>
<content type='text'>
https://github.com/ruby/irb/commit/cc9b1d7ba8
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
https://github.com/ruby/irb/commit/cc9b1d7ba8
</pre>
</div>
</content>
</entry>
<entry>
<title>[ruby/irb] Disable debug cmd tests based on project structure</title>
<updated>2022-12-02T20:43:59+00:00</updated>
<author>
<name>Stan Lo</name>
<email>stan.lo@shopify.com</email>
</author>
<published>2022-12-02T20:43:55+00:00</published>
<link rel='alternate' type='text/html' href='https://git.ruby-lang.org/ruby.git/commit/?id=69fd673b1a22039c7414a5eb4046d3bf54a0c750'/>
<id>69fd673b1a22039c7414a5eb4046d3bf54a0c750</id>
<content type='text'>
instead of env
(https://github.com/ruby/irb/pull/466)

It's hard to find an env var that's universally set in all Ruby CI
environments but not in local. Checking gemspec seems to be a better way
as `syntax_suggest` already uses it for a while.

https://github.com/ruby/syntax_suggest/blob/d8f1bca297a392b80b5d167e2be07cf6ac4feae3/spec/spec_helper.rb#L47</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
instead of env
(https://github.com/ruby/irb/pull/466)

It's hard to find an env var that's universally set in all Ruby CI
environments but not in local. Checking gemspec seems to be a better way
as `syntax_suggest` already uses it for a while.

https://github.com/ruby/syntax_suggest/blob/d8f1bca297a392b80b5d167e2be07cf6ac4feae3/spec/spec_helper.rb#L47</pre>
</div>
</content>
</entry>
<entry>
<title>[ruby/irb] This doesn't work on RubyCI either</title>
<updated>2022-12-02T07:41:18+00:00</updated>
<author>
<name>Takashi Kokubun</name>
<email>takashikkbn@gmail.com</email>
</author>
<published>2022-12-02T07:40:33+00:00</published>
<link rel='alternate' type='text/html' href='https://git.ruby-lang.org/ruby.git/commit/?id=f01bfa8af7e4d163e411d133da7ef170f1b33988'/>
<id>f01bfa8af7e4d163e411d133da7ef170f1b33988</id>
<content type='text'>
http://rubyci.s3.amazonaws.com/rhel_zlinux/ruby-master/log/20221202T063302Z.fail.html.gz
http://rubyci.s3.amazonaws.com/openbsd-current/ruby-master/log/20221202T053006Z.fail.html.gz
http://rubyci.s3.amazonaws.com/freebsd12/ruby-master/log/20221202T063002Z.fail.html.gz
http://rubyci.s3.amazonaws.com/osx1013/ruby-master/log/20221202T054503Z.fail.html.gz

https://github.com/ruby/irb/commit/13c2484d59
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
http://rubyci.s3.amazonaws.com/rhel_zlinux/ruby-master/log/20221202T063302Z.fail.html.gz
http://rubyci.s3.amazonaws.com/openbsd-current/ruby-master/log/20221202T053006Z.fail.html.gz
http://rubyci.s3.amazonaws.com/freebsd12/ruby-master/log/20221202T063002Z.fail.html.gz
http://rubyci.s3.amazonaws.com/osx1013/ruby-master/log/20221202T054503Z.fail.html.gz

https://github.com/ruby/irb/commit/13c2484d59
</pre>
</div>
</content>
</entry>
<entry>
<title>[ruby/irb] Skip debug command tests on ruby/ruby</title>
<updated>2022-12-02T04:43:36+00:00</updated>
<author>
<name>Takashi Kokubun</name>
<email>takashikkbn@gmail.com</email>
</author>
<published>2022-12-02T04:42:57+00:00</published>
<link rel='alternate' type='text/html' href='https://git.ruby-lang.org/ruby.git/commit/?id=7e3b42d008de3c69c9e6bc1d127f28d91c0e88a9'/>
<id>7e3b42d008de3c69c9e6bc1d127f28d91c0e88a9</id>
<content type='text'>
Stan has said these tests could be excluded if they don't work on
ruby/ruby CI.

https://github.com/ruby/irb/commit/11e779ecb7
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Stan has said these tests could be excluded if they don't work on
ruby/ruby CI.

https://github.com/ruby/irb/commit/11e779ecb7
</pre>
</div>
</content>
</entry>
<entry>
<title>[ruby/irb] Use the proper ruby command and library path</title>
<updated>2022-12-02T03:14:51+00:00</updated>
<author>
<name>Nobuyoshi Nakada</name>
<email>nobu@ruby-lang.org</email>
</author>
<published>2022-12-02T03:08:25+00:00</published>
<link rel='alternate' type='text/html' href='https://git.ruby-lang.org/ruby.git/commit/?id=b6c66ead9da8e4a8a0aeed0eece056d74273b6d9'/>
<id>b6c66ead9da8e4a8a0aeed0eece056d74273b6d9</id>
<content type='text'>
https://github.com/ruby/irb/commit/1416cc1871
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
https://github.com/ruby/irb/commit/1416cc1871
</pre>
</div>
</content>
</entry>
<entry>
<title>[ruby/irb] Test debug commands without yamatanooroti</title>
<updated>2022-12-02T01:05:22+00:00</updated>
<author>
<name>Stan Lo</name>
<email>stan.lo@shopify.com</email>
</author>
<published>2022-12-02T01:05:07+00:00</published>
<link rel='alternate' type='text/html' href='https://git.ruby-lang.org/ruby.git/commit/?id=8abf9e6ad0390e384ab47243ed4ece62a4d9cea0'/>
<id>8abf9e6ad0390e384ab47243ed4ece62a4d9cea0</id>
<content type='text'>
(https://github.com/ruby/irb/pull/464)

* Add debug command tests that don't require yamatanooroti

* Remove debug command related yamatanooroti tests

As discussed in https://github.com/ruby/irb/pull/449#pullrequestreview-1187255149,
we should avoid adding new tests that need yamatanooroti because it's
not maintained by the Ruby org. And since debug commands are now tested
in `test/irb/test_debug_cmd.rb`, we don't need these tests anymore.

* Test against latest debug gem

https://github.com/ruby/irb/commit/78a8aa8834
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
(https://github.com/ruby/irb/pull/464)

* Add debug command tests that don't require yamatanooroti

* Remove debug command related yamatanooroti tests

As discussed in https://github.com/ruby/irb/pull/449#pullrequestreview-1187255149,
we should avoid adding new tests that need yamatanooroti because it's
not maintained by the Ruby org. And since debug commands are now tested
in `test/irb/test_debug_cmd.rb`, we don't need these tests anymore.

* Test against latest debug gem

https://github.com/ruby/irb/commit/78a8aa8834
</pre>
</div>
</content>
</entry>
</feed>
