Subject: | [PATCH] Build/test FAIL on Linux 3.11 kernel |
Linux 3.11.6-4-desktop [openSUSE 13.1 (Bottle)]
t/process.t .. Ran into unknown state (hex char: 29) at t/process.t line 19.
Ran into unknown state (hex char: 29) at t/process.t line 19.
Ran into unknown state (hex char: 29) at t/process.t line 19.
Ran into unknown state (hex char: 29) at t/process.t line 19.
--- Proc-ProcessTable-0.48/os/Linux.c 2013-04-07 12:56:30.000000000 +0200
+++ Proc-ProcessTable-0.48-3gKaNU/os/Linux.c 2013-12-03 14:18:42.217199814 +0100
@@ -33,6 +33,7 @@ static unsigned system_hertz;
static bool init_failed = false;
+extern char *canonicalize_file_name(const char *path);
/* get_string()
*
@@ -331,6 +332,7 @@ static bool get_proc_stat(char *pid, cha
* NOTE: we don't bother checking bounds since strchr didn't return NULL
* thus the NULL terminator will be at least paren+1, which is ok */
stat_cont = paren + 1;
+ if (*stat_cont == ')') stat_cont++;
/* scape the remaining values */
result = sscanf(stat_cont, " %c %d %d %d %d %d %u %lu %lu %lu %lu %llu"
diff -purd Proc-ProcessTable-0.48/os/Linux.h Proc-ProcessTable-0.48-3gKaNU/os/Linux.h
--- Proc-ProcessTable-0.48/os/Linux.h 2013-04-07 12:56:30.000000000 +0200
+++ Proc-ProcessTable-0.48-3gKaNU/os/Linux.h 2013-12-03 14:12:25.718710547 +0100
@@ -32,7 +32,7 @@ struct procstat
unsigned long wchan;
/* these are derived from above time values */
unsigned long long time, ctime;
- /* from above state_c but fixed up elese where */
+ /* from above state_c but fixed up elsewhere */
const char *state;
/* values scraped from /proc/{$pid}/status */
int euid, suid, fuid;