diff options
author | Thomas Helland <[email protected]> | 2017-05-19 22:07:17 +0200 |
---|---|---|
committer | Thomas Helland <[email protected]> | 2017-09-26 18:24:46 +0200 |
commit | 584a2a22ea40cdc030db5b1d70b23dddcc06a556 (patch) | |
tree | ac11f75f34d2d7d754a919faac81e4e84c45cc72 /src/util/Makefile.am | |
parent | 7885bb684d8a1ee9fbdcf85603e1f923a3526b22 (diff) |
util: Add tests for the string buffer
More tests could probably be added, but this should cover
concatenation, resizing, clearing, formatted printing,
and checking the length, so it should be quite complete.
Signed-off-by: Thomas Helland <[email protected]>
Reviewed-by: Nicolai Hähnle <nicolai.haehnle at amd.com>
Tested-by: Dieter Nützel <Dieter at nuetzel-hh.de>
V2: Address review feedback from Timothy, plus fixes
- Use a large enough char array
- Actually test the formatted appending
- Test that clear function resets string length
V3: Port to gtest
V4: Fix test makefile
Fix copyright header
Fix missing extern C
Use more appropriate name for C-file
Add tests for append_char
Diffstat (limited to 'src/util/Makefile.am')
-rw-r--r-- | src/util/Makefile.am | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/util/Makefile.am b/src/util/Makefile.am index c37afff7520..b57da3cd948 100644 --- a/src/util/Makefile.am +++ b/src/util/Makefile.am @@ -19,7 +19,10 @@ # FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS # IN THE SOFTWARE. -SUBDIRS = xmlpool . tests/hash_table +SUBDIRS = . \ + xmlpool \ + tests/hash_table \ + tests/string_buffer include Makefile.sources |