1#!/bin/bash 2# SPDX-License-Identifier: GPL-2.0 3# 4# A malformed Module.symvers has to be reported against the line it is on. 5# Module.symvers has tens of thousands of lines and is generated, so a wrong 6# line number sends whoever has to fix it to the wrong place, and "line 1" is 7# wrong in a way that looks plausible. 8 9. "$(dirname "$0")/../lib.sh" 10 11setup 12build_pair basic.c 13 14# Three well-formed lines, then one with no tabs at all. 15export_syms a b c 16echo 'this line has no fields' >> "$workdir/Module.symvers" 17 18run_diff 255 19 20assert_diff_log 'malformed Module.symvers' 21assert_diff_log 'at line 4' 22 23pass "malformed Module.symvers reported against the offending line" 24