You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
26 lines
713 B
Ruby
26 lines
713 B
Ruby
3 years ago
|
# frozen_string_literal: true
|
||
|
|
||
|
# SPDX-License-Identifier: MIT OR Apache-2.0
|
||
|
#
|
||
|
# Copyright (c) 2022 Andre Richter <andre.o.richter@gmail.com>
|
||
|
|
||
|
require_relative '../../common/tests/console_io_test'
|
||
|
|
||
|
# Verify that exception restore works.
|
||
|
class ExceptionRestoreTest < SubtestBase
|
||
|
def name
|
||
|
'Exception restore'
|
||
|
end
|
||
|
|
||
|
def run(qemu_out, _qemu_in)
|
||
|
expect_or_raise(qemu_out, 'Back from system call!')
|
||
|
end
|
||
|
end
|
||
|
|
||
|
##--------------------------------------------------------------------------------------------------
|
||
|
## Test registration
|
||
|
##--------------------------------------------------------------------------------------------------
|
||
|
def subtest_collection
|
||
|
[ExceptionRestoreTest.new]
|
||
|
end
|