Description:
The original intent of issue #293 was to add error checking for mkstemp() and mkdtemp(). For that, it necessitated better testing for regression. Along with this change, I did the following:
Add gcov usage for tests/flit_src to show line coverage
Update tinydir.h to the latest version to better handle symbolic links
Add functions rstrip(), lstrip(), strip(), basename(), and dirname() to FLiT's source
Use the TH_TEST() macro instead of TH_REGISTER(). The former is easier and less error-prone.
Have test coverage on every line I can (without stubbing) for fsutil.cpp
Documentation:
Fixed documentation at the top of test_harness.h to describe the new way of creating a test
Fixes #293
Description: The original intent of issue #293 was to add error checking for
mkstemp()
andmkdtemp()
. For that, it necessitated better testing for regression. Along with this change, I did the following:gcov
usage fortests/flit_src
to show line coveragetinydir.h
to the latest version to better handle symbolic linksrstrip()
,lstrip()
,strip()
,basename()
, anddirname()
to FLiT's sourceTH_TEST()
macro instead ofTH_REGISTER()
. The former is easier and less error-prone.fsutil.cpp
Documentation:
test_harness.h
to describe the new way of creating a testTests:
fsutil.h