Create an utility library (LIBBU) API unit test for badmagic.cBRL-CAD
Status: ClosedTime to complete: 72 hrs Mentors: SeanTags:

There are more than 300 library functions in our core LIBBU library. As a core library used by nearly every one of BRL-CAD's tools, testing those functions for correct behavior is important.

References:

  • include/bu.h
  • src/libbu/badmagic.c
  • src/libbu/tests/*.c

Code:

  • src/libbu/tests/badmagic.c
  • src/libbu/tests/CMakeLists.txt

This task involves implementing a new unit test for any of LIBBU's source files that do not already have a unit test defined. The test should run all of the public functions and be hooked into our build system. We have lots of existing unit tests to follow as an example.

Uploaded Work
File name/URLFile sizeDate submitted
https://sourceforge.net/p/brlcad/code/59237/n/aDecember 31 2013 00:40 UTC
Comments
agkphysicson December 30 2013 12:12 UTCTask Claimed

I would like to work on this task.

Mandeep Kaur on December 30 2013 12:33 UTCTask Assigned

This task has been assigned to agkphysics. You have 72 hours to complete this task, good luck!

agkphysicson December 31 2013 00:40 UTCReady for review

The work on this task is ready to be reviewed.

Sean on December 31 2013 03:42 UTCTask Closed

Congratulations, this task has been completed successfully.

Sean on December 31 2013 03:46 UTCstatic callback

This looks good, but the callback function should be static.  Excellent discovery of how to set the bomb callback as a means to test a bombing function.