Activity for CuTest: C Unit Testing Framework

  • Bruno Raoult Bruno Raoult modified a comment on ticket #5

    I can see issues in CuAssertMemEquals_LineMsg: 1) If one of actual/expected is NULL, we will get a segfault: if ((expected == NULL && actual == NULL) || // both NULL (expected != NULL && actual != NULL && // both non NULL (memcmp(expected, actual, len)) == 0)) { return; } /* below, dereferenced expected/actual are used, but we may have * one NULL, and get segfault. */ 2) buf is filled before checking for overflow. It means we can have an overflow: For example: c += sprintf(&buf[c],"expected <\n");...

  • Bruno Raoult Bruno Raoult posted a comment on ticket #5

    I can see issues in CuAssertMemEquals_LineMsg: 1) If one of actual/expected is NULL, we will get a segfault: if ((expected == NULL && actual == NULL) || (expected != NULL && actual != NULL && (memcmp(expected, actual, len)) == 0)) { return; } // after that, dereferenced expected/actual are used, wrong if NULL 2) buf is filled before checking for overflow. It means we can have an overflow: For example: for(i=0;i < len;i++) c += sprintf(&buf[c],"%s0x%02x",((i % 16) == 15 ) ? "\n" : (i > 0) ? "," :...

  • Chris T Chris T posted a comment on ticket #7

    Added "void *" context passed into to test fnuctions to avoid globals

  • Chris T Chris T created ticket #7

    Added "void *" context passed into to test fnuctions to avoid globals

  • Chris T Chris T posted a comment on ticket #6

    Changed CuSuiteRun to return the number of failures so that I can exit with a non-zero

  • Chris T Chris T created ticket #6

    Change CuSuiteRun to return the number of failures

  • Chris T Chris T posted a comment on ticket #5

    Patch to add int64_t support, and generic memory buffer tests

  • Chris T Chris T created ticket #5

    adding int64_t and memory test

  • CuTest: C Unit Testing Framework CuTest: C Unit Testing Framework released /OldFiles/cutest-1.2.zip

  • CuTest: C Unit Testing Framework CuTest: C Unit Testing Framework released /OldFiles/cutest.zip

  • CuTest: C Unit Testing Framework CuTest: C Unit Testing Framework released /OldFiles/cutest-1.2.tar.gz

  • CuTest: C Unit Testing Framework CuTest: C Unit Testing Framework released /OldFiles/cutest.tgz

1