blob: c5c7381bb4091b748e4490b8cfe1287082997ab1 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
|
#!/bin/bash
# SPDX-License-Identifier: GPL-2.0
#
# Livepatching replaces functions, not data. A changed data symbol must be
# rejected.
. "$(dirname "$0")/../lib.sh"
setup
build_pair changed_data.c
run_diff 255
diff_log | grep -q 'changed data: klp_test_data' ||
fail "expected rejection, got: $(diff_log | tail -1)"
[ -e "$workdir/out.o" ] &&
fail "output object produced for a rejected input"
pass "changed data symbol rejected"
|