Browse Source

Ticket #48226 - CI test: fixing test case for ticket 48226

Description: commit f5d24450477f8341261c3e5cb5c54ec1ab83328f had an
issue in valgrind check.  The script calls valgrind_check_leak twice,
in which the server is stopped.  Before calling the second valgrind_
check_leak, the server (master 2) has to be restarted.  Also, "Invalid"
is reported after another server (master 1) is restarted.  To capture
it, start master 1 before calling the second valgrind_check_leak.
Noriko Hosoi 10 years ago
parent
commit
e8ce19a987
1 changed files with 7 additions and 5 deletions
  1. 7 5
      dirsrvtests/tickets/ticket48226_test.py

+ 7 - 5
dirsrvtests/tickets/ticket48226_test.py

@@ -205,6 +205,13 @@ def test_ticket11111_1(topology):
     else:
         log.info('test_csnset_dup: No leak is present!')
     
+    topology.master2.start(10)
+
+    # Disnable valgrind
+    valgrind_disable(sbin_dir)
+
+    topology.master1.start(10)
+    
     if valgrind_check_leak(topology.master2, 'Invalid'):
         log.info('Valgrind reported invalid!')
     else:
@@ -213,11 +220,6 @@ def test_ticket11111_1(topology):
     #log.info("You can attach yourself")
     #time.sleep(60)
     
-    # Enable valgrind
-    valgrind_disable(sbin_dir)
-
-    topology.master1.start(10)
-
     
 def test_ticket11111_final(topology):
     topology.master1.delete()