[Openvas-commits] r5633 - in trunk/openvas-manager: . src/tests

scm-commit@wald.intevation.org scm-commit at wald.intevation.org
Tue Oct 20 00:14:31 CEST 2009


Author: mattm
Date: 2009-10-20 00:14:30 +0200 (Tue, 20 Oct 2009)
New Revision: 5633

Modified:
   trunk/openvas-manager/ChangeLog
   trunk/openvas-manager/src/tests/omp_get_status_5.c
Log:
	* src/tests/omp_get_status_5.c: Add FINISHED to REPORT_COUNT in
	expected response.

Modified: trunk/openvas-manager/ChangeLog
===================================================================
--- trunk/openvas-manager/ChangeLog	2009-10-19 22:10:25 UTC (rev 5632)
+++ trunk/openvas-manager/ChangeLog	2009-10-19 22:14:30 UTC (rev 5633)
@@ -1,5 +1,10 @@
 2009-10-19  Matthew Mundell <matthew.mundell at intevation.de>
 
+	* src/tests/omp_get_status_5.c: Add FINISHED to REPORT_COUNT in
+	expected response.
+
+2009-10-19  Matthew Mundell <matthew.mundell at intevation.de>
+
 	* src/openvasmd.c (cleanup): Add comment to #endif.
 
 2009-10-19  Matthew Mundell <matthew.mundell at intevation.de>

Modified: trunk/openvas-manager/src/tests/omp_get_status_5.c
===================================================================
--- trunk/openvas-manager/src/tests/omp_get_status_5.c	2009-10-19 22:10:25 UTC (rev 5632)
+++ trunk/openvas-manager/src/tests/omp_get_status_5.c	2009-10-19 22:14:30 UTC (rev 5633)
@@ -40,7 +40,7 @@
   int socket;
   gnutls_session_t session;
   char* id;
-  entity_t entity, expected, task, messages;
+  entity_t entity, expected, task, messages, report_count;
 
   setup_test ();
 
@@ -100,7 +100,8 @@
   add_entity (&messages->entities, "info", "0");
   add_entity (&messages->entities, "log", "0");
   add_entity (&messages->entities, "warning", "0");
-  add_entity (&task->entities, "report_count", "0");
+  report_count = add_entity (&task->entities, "report_count", "0");
+  add_entity (&report_count->entities, "finished", "0");
 
   if (compare_entities (entity, expected))
     {



More information about the Openvas-commits mailing list