test: add cmdline-string test

This commit is contained in:
Josh Poimboeuf 2014-05-05 15:07:52 -05:00
parent d3aee7c734
commit 3ae6bc46ff
2 changed files with 16 additions and 0 deletions

View File

@ -0,0 +1,3 @@
#!/bin/bash
grep kpatch=1 /proc/cmdline

View File

@ -0,0 +1,13 @@
Index: src/fs/proc/cmdline.c
===================================================================
--- src.orig/fs/proc/cmdline.c
+++ src/fs/proc/cmdline.c
@@ -5,7 +5,7 @@
static int cmdline_proc_show(struct seq_file *m, void *v)
{
- seq_printf(m, "%s\n", saved_command_line);
+ seq_printf(m, "%s kpatch=1\n", saved_command_line);
return 0;
}