mirror of
https://github.com/rust-embedded/rust-raspberrypi-OS-tutorials.git
synced 2024-11-11 07:10:59 +00:00
27 lines
766 B
Ruby
27 lines
766 B
Ruby
# frozen_string_literal: true
|
|
|
|
# SPDX-License-Identifier: MIT OR Apache-2.0
|
|
#
|
|
# Copyright (c) 2022 Andre Richter <andre.o.richter@gmail.com>
|
|
|
|
require 'console_io_test'
|
|
|
|
# Test detection of invalid frame pointers.
|
|
class InvalidFramePointerTest < SubtestBase
|
|
def name
|
|
'Detect invalid frame pointer'
|
|
end
|
|
|
|
def run(qemu_out, _qemu_in)
|
|
expect_or_raise(qemu_out,
|
|
/Encountered invalid frame pointer \(.*\) during backtrace/)
|
|
end
|
|
end
|
|
|
|
##--------------------------------------------------------------------------------------------------
|
|
## Test registration
|
|
##--------------------------------------------------------------------------------------------------
|
|
def subtest_collection
|
|
[InvalidFramePointerTest.new]
|
|
end
|