mirror of
https://github.com/torvalds/linux.git
synced 2024-12-29 14:21:47 +00:00
tools/bootconfig: Add testcases for repeated key with brace
Add a testcase for repeated key with brace parsing issue. Link: https://lkml.kernel.org/r/160068150176.1088739.409481347784771987.stgit@devnote2 Signed-off-by: Masami Hiramatsu <mhiramat@kernel.org> Signed-off-by: Steven Rostedt (VMware) <rostedt@goodmis.org>
This commit is contained in:
parent
c7af4ecdff
commit
1d210c166b
@ -137,6 +137,18 @@ $BOOTCONF $INITRD > $TEMPCONF
|
||||
cat $TEMPCONF
|
||||
xpass grep \'\"string\"\' $TEMPCONF
|
||||
|
||||
echo "Repeat same-key tree"
|
||||
cat > $TEMPCONF << EOF
|
||||
foo
|
||||
bar
|
||||
foo { buz }
|
||||
EOF
|
||||
echo > $INITRD
|
||||
|
||||
xpass $BOOTCONF -a $TEMPCONF $INITRD
|
||||
$BOOTCONF $INITRD > $OUTFILE
|
||||
xpass grep -q "bar" $OUTFILE
|
||||
|
||||
echo "=== expected failure cases ==="
|
||||
for i in samples/bad-* ; do
|
||||
xfail $BOOTCONF -a $i $INITRD
|
||||
|
Loading…
Reference in New Issue
Block a user