Index: trunk/ippTools/src/pxfake.c
===================================================================
--- trunk/ippTools/src/pxfake.c	(revision 17938)
+++ trunk/ippTools/src/pxfake.c	(revision 19092)
@@ -35,10 +35,5 @@
 
     // check that state is a valid string value
-    if (!(
-            (strncmp(state, "run", 4) == 0)
-            || (strncmp(state, "stop", 5) == 0)
-            || (strncmp(state, "reg", 4) == 0)
-        )
-    ) {
+    if (!pxIsValidState(state)) {
         psError(PS_ERR_UNKNOWN, false,
                 "invalid fakeRun state: %s", state);
@@ -63,10 +58,5 @@
 
     // check that state is a valid string value
-    if (!(
-            (strncmp(state, "run", 4) == 0)
-            || (strncmp(state, "stop", 5) == 0)
-            || (strncmp(state, "reg", 4) == 0)
-        )
-    ) {
+    if (!pxIsValidState(state)) {
         psError(PS_ERR_UNKNOWN, false,
                 "invalid fakeRun state: %s", state);
@@ -164,5 +154,5 @@
     // different on 32/64
     if (!p_psDBRunQuery(config->dbh, query,
-                "run", // state
+                "new", // state
                 workdir  ? workdir  : "NULL",
                 label    ? label    : "NULL",
