Netbeans cunit tests never end

Trying to test my C project on NetBeans, tests never end during exit:

   Test: testFileOne ...passed   Test: testFileTwo ...passed

 Run Summary:    Type  Total    Ran Passed Failed Inactive
               suites      1      1    n/a      0        0
                tests      2      2      2      0        0
              asserts      8      8      8      0      n/a

 Elapsed time =    0.000 seconds

Even if it seems complete, the progress bar still lights at 0.0%.

All test cases:

void testMethod() {
     CU_ASSERT(1 == 1);
     //other lines of code..
     CU_ASSERT(0 == 0);
 }

with multiple CU_ASSERT for each function. Some behavior with NetBeans auto-generated test code.

Team

make test

from the command line works like a charme and ends without problems.

Has anyone encountered this problem before? any way to solve this problem without skewing my laptop? Thank you in advance for each comment.

+5
source share
2 answers

(, gdb), , .

cunit. , gcc, -g.

, .

+1

, Netbeans a, , printf("%%SUITE_FINISHED%% time=0\n");. ( C, - , CUnit):

#include <stdio.h>
#include <stdlib.h>

void test1() {
    // do your stuff
}

int main(int argc, char** argv) {
    printf("%%SUITE_STARTING%% mysimpletest\n");
    printf("%%SUITE_STARTED%%\n");

    printf("%%TEST_STARTED%% test1 (mysimpletest)\n");
    test1();
    printf("%%TEST_FINISHED%% time=0 test1 (mysimpletest) \n");

    printf("%%SUITE_FINISHED%% time=0\n");

    return (EXIT_SUCCESS);
}
+1