mirror of
https://github.com/rust-embedded/rust-raspberrypi-OS-tutorials.git
synced 2024-11-19 15:25:29 +00:00
26 lines
710 B
Ruby
26 lines
710 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 link.
|
|
class InvalidLinkTest < SubtestBase
|
|
def name
|
|
'Detect invalid link'
|
|
end
|
|
|
|
def run(qemu_out, _qemu_in)
|
|
expect_or_raise(qemu_out, /Link address \(.*\) is not contained in kernel .text section/)
|
|
end
|
|
end
|
|
|
|
##--------------------------------------------------------------------------------------------------
|
|
## Test registration
|
|
##--------------------------------------------------------------------------------------------------
|
|
def subtest_collection
|
|
[InvalidLinkTest.new]
|
|
end
|