Index: branches/jhoblitt/ippdb/tests/alloc.c
===================================================================
--- branches/jhoblitt/ippdb/tests/alloc.c	(revision 7500)
+++ branches/jhoblitt/ippdb/tests/alloc.c	(revision 8006)
@@ -880,15 +880,15 @@
         detRunRow       *object;
 
-        object = detRunRowAlloc("a string", -32    );
-
-        if (!object) {
-            exit(EXIT_FAILURE);
-        }
-
+        object = detRunRowAlloc(-32, "a string"    );
+
+        if (!object) {
+            exit(EXIT_FAILURE);
+        }
+
+        if (!object->iteration == -32) {
+            psFree(object);
+            exit(EXIT_FAILURE);
+        }
         if (strncmp(object->det_type, "a string", MAX_STRING_LENGTH)) {
-            psFree(object);
-            exit(EXIT_FAILURE);
-        }
-        if (!object->iteration == -32) {
             psFree(object);
             exit(EXIT_FAILURE);
