ERRORLEVEL not set correctly on exception

B

brian.kejser

Hi

If I run the following code, then the DOS ERRORLEVEL is set to 1 as expected.

Timeout.timeout(1) { sleep(5) }

If I run the following code, then the DOS ERRORLEVEL is also set to 1 as
expected.

require 'test/unit'

class some_Test < Test::Unit::TestCase

def test_something
assert(false, "Failure")
end

end

If I run the following code, then the DOS ERRORLEVEL is set to 0.

require 'test/unit'

class some_Test < Test::Unit::TestCase

def test_something
Timeout.timeout(1) { sleep(5) }
end

end

Shouldn't the DOS ERRORLEVEL be 1 in the above case? Is this a bug or am I
missing something?

Thanks
 
N

nobu

Hi,

At Sat, 9 Sep 2006 02:03:51 +0900,
If I run the following code, then the DOS ERRORLEVEL is set to 0.

require 'test/unit'

class some_Test < Test::Unit::TestCase

def test_something
Timeout.timeout(1) { sleep(5) }
end

end

Shouldn't the DOS ERRORLEVEL be 1 in the above case? Is this a bug or am I
missing something?

Timeout::Error wasn't caught. It was fixed yesterday.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,755
Messages
2,569,536
Members
45,014
Latest member
BiancaFix3

Latest Threads

Top