Ever since upgrading to Rails 3.1 on one of my projects tests can no longer be stopped using Ctrl+C but must instead be stopped will "kill -9" (regular kill will also not stop the tests). This is on Ubuntu 11.04 with Ruby 1.9.2p0 and Rails 3.1.1. -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
On 05/11/11 11:54, thoughtafter wrote:> Ever since upgrading to Rails 3.1 on one of my projects tests can no > longer be stopped using Ctrl+C but must instead be stopped will "kill > -9" (regular kill will also not stop the tests). > > This is on Ubuntu 11.04 with Ruby 1.9.2p0 and Rails 3.1.1.What is the code in the test that causes this to happen? Peter -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
All tests. Ctrl+C seems to interrupt the first test and does nothing after that. The only gem I can speculate being a problem might be shoulda. On Nov 5, 4:51 am, Peter Hicks <peter.hi...-AEjVCzJlOor10XsdtD+oqA@public.gmane.org> wrote:> On 05/11/11 11:54, thoughtafter wrote:> Ever since upgrading to Rails 3.1 on one of my projects tests can no > > longer be stopped using Ctrl+C but must instead be stopped will "kill > > -9" (regular kill will also not stop the tests). > > > This is on Ubuntu 11.04 with Ruby 1.9.2p0 and Rails 3.1.1. > > What is the code in the test that causes this to happen? > > Peter-- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
Norbert Melzer
2011-Nov-14 11:42 UTC
Re: Re: Rails 3.1.x - "kill -9" only way to stop tests
2011/11/9 thoughtafter <thoughtafter-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>:> All tests. Ctrl+C seems to interrupt the first test and does nothing > after that. The only gem I can speculate being a problem might be > shoulda.How do you start your tests? -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
rake test or ruby -Itest test/unit/whatever On Nov 14, 3:42 am, Norbert Melzer <timmel...-gM/Ye1E23mwN+BqQ9rBEUg@public.gmane.org> wrote:> 2011/11/9thoughtafter<thoughtaf...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>: > > > All tests. Ctrl+C seems to interrupt the first test and does nothing > > after that. The only gem I can speculate being a problem might be > > shoulda. > > How do you start your tests?-- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
There was some speculation on this issue here: https://github.com/seattlerb/minitest/issues/46 On Nov 14, 3:42 am, Norbert Melzer <timmel...-gM/Ye1E23mwN+BqQ9rBEUg@public.gmane.org> wrote:> 2011/11/9thoughtafter<thoughtaf...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>: > > > All tests. Ctrl+C seems to interrupt the first test and does nothing > > after that. The only gem I can speculate being a problem might be > > shoulda. > > How do you start your tests?-- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.