mirror of
https://github.com/dynup/kpatch
synced 2025-05-16 23:08:39 +00:00
test: add cmdline-string test
This commit is contained in:
parent
d3aee7c734
commit
3ae6bc46ff
3
test/integration/cmdline-string-LOADED.test
Executable file
3
test/integration/cmdline-string-LOADED.test
Executable file
@ -0,0 +1,3 @@
|
||||
#!/bin/bash
|
||||
|
||||
grep kpatch=1 /proc/cmdline
|
13
test/integration/cmdline-string.patch
Normal file
13
test/integration/cmdline-string.patch
Normal 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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user