[tests] remove test_buffer output, except on error

This commit is contained in:
Glenn Strauss 2018-04-14 23:09:45 -04:00
parent 1cef8dfc05
commit 132c1b6019
1 changed files with 3 additions and 1 deletions

View File

@ -21,12 +21,14 @@ static void run_buffer_path_simplify(buffer *psrc, buffer *pdest, const char *in
fflush(stderr);
abort();
} else {
#if 0
fprintf(stdout,
"%s.%d: buffer_path_simplify('%s') succeeded: got '%s'\n",
__FILE__,
__LINE__,
in,
out);
#endif
if (psrc != pdest) buffer_copy_buffer(psrc, pdest);
buffer_path_simplify(pdest, psrc);
@ -69,7 +71,7 @@ static void test_buffer_path_simplify_with(buffer *psrc, buffer *pdest) {
run_buffer_path_simplify(psrc, pdest, CONST_STR_LEN("/.././xyz/.."), CONST_STR_LEN("/"));
}
static void test_buffer_path_simplify() {
static void test_buffer_path_simplify(void) {
buffer *psrc = buffer_init();
buffer *pdest = buffer_init();