append to an empty test log

This commit is contained in:
jlamothe 2023-11-10 21:17:06 +00:00
parent 4c0d33693b
commit a14b11e853

View File

@ -20,15 +20,34 @@
*/ */
#include <u.h> #include <u.h>
#include <libc.h>
#include "../9unit.h" #include "../9unit.h"
#include "util.h"
#include "append-test-log.h" #include "append-test-log.h"
// Local Prototypes
static void append_to_empty(TestState *);
// Public Functions // Public Functions
void void
test_append_test_log(TestState *) test_append_test_log(TestState *s)
{ {
print("append_test_log()\n");
append_to_empty(s);
}
// Local Functions
static void
append_to_empty(TestState *)
{
TestState test;
print("\tappend to empty\n");
mk_sample_state(&test);
append_test_log(&test, "foo");
} }
//jl //jl