From 6b8cd144712dbc6b97713be90f4949841e89f80f Mon Sep 17 00:00:00 2001 From: Naoto Ono Date: Tue, 22 Nov 2022 18:15:27 +0900 Subject: [PATCH] Enable the test for checking if test fails when debuggee does not exit --- test/support/protocol_test_case_test.rb | 30 ++++++++++++------------- 1 file changed, 14 insertions(+), 16 deletions(-) diff --git a/test/support/protocol_test_case_test.rb b/test/support/protocol_test_case_test.rb index 2f9e494e3..d9e687f9b 100644 --- a/test/support/protocol_test_case_test.rb +++ b/test/support/protocol_test_case_test.rb @@ -1,20 +1,18 @@ # frozen_string_literal: true -# FIXME: this test doesn't pass +require_relative 'protocol_test_case' -# require_relative 'protocol_test_case' +module DEBUGGER__ + class TestFrameworkTestHOge < ProtocolTestCase + PROGRAM = <<~RUBY + 1| a=1 + RUBY -# module DEBUGGER__ -# class TestFrameworkTestHOge < ProtocolTestCase -# PROGRAM = <<~RUBY -# 1| a=1 -# RUBY - -# def test_the_test_fails_when_debuggee_doesnt_exit -# assert_fail_assertion do -# run_protocol_scenario PROGRAM do -# end -# end -# end -# end -# end + def test_the_test_fails_when_debuggee_doesnt_exit + assert_fail_assertion do + run_protocol_scenario PROGRAM do + end + end + end + end +end