From c0ca6bc6ecce0d16d1ca072820e998f5edc2791d Mon Sep 17 00:00:00 2001 From: Jürgen Knödlseder Date: Wed, 29 Jan 2014 16:35:33 +0100 Subject: [PATCH] Put the test suite test case before the individual test cases that are done within a test suite. --- src/test/GTestSuite.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/test/GTestSuite.cpp b/src/test/GTestSuite.cpp index 865a4ac..7eb7b98 100644 --- a/src/test/GTestSuite.cpp +++ b/src/test/GTestSuite.cpp @@ -279,6 +279,9 @@ bool GTestSuite::run(void) // Create a test of error type for function testing GTestCase* test = new GTestCase(GTestCase::ERROR_TEST, m_names[m_index]); + // Add test case to test suite + m_tests.push_back(test); + // Set start time #ifdef _OPENMP double t_start = omp_get_wtime(); @@ -335,12 +338,9 @@ bool GTestSuite::run(void) success = false; } - // Add test case to test suite - m_tests.push_back(test); - } // endif: test case has a function pointer - } // endwhile: there were tests on the stack + } // endfor: looped over tests on the stack // Reset index m_index = 0; @@ -354,7 +354,7 @@ bool GTestSuite::run(void) * @brief Test an assert * * @param[in] assert Assert (true/false). - * @param[in] name Test case name (defaults to ""). + * @param[in] name Test case name. * @param[in] message Test case name (defaults to ""). * * Tests if a condition is true or false. This method adds a test case of -- libgit2 0.21.4