1#!/bin/bash 2# SPDX-License-Identifier: GPL-2.0 3# 4# The module name in .modinfo ends up in the livepatch's klp_object, so an 5# object without one cannot be diffed. 6 7. "$(dirname "$0")/../lib.sh" 8 9setup 10build_pair no_modinfo.c 11run_diff 255 12 13diff_log | grep -q 'modinfo' || 14 fail "expected a complaint about .modinfo, got: $(diff_log | tail -1)" 15 16pass "object without .modinfo rejected" 17