From: Damir Tomic Date: Fri, 19 Jun 2015 13:51:57 +0000 (+0000) Subject: c_fileHandlingTest.h: X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=6620e81414dd0a23dbc9a0aea21ec73506b5ef78;p=thirdparty%2Fntp.git c_fileHandlingTest.h: added debug printfs, changed path value kodFile.c: added debug printfs bk: 55841e7dHLCkt8fgrofgwXKPQJug-g --- diff --git a/sntp/tests/c_fileHandlingTest.h b/sntp/tests/c_fileHandlingTest.h index 2ce075c60..b9cb12ad6 100644 --- a/sntp/tests/c_fileHandlingTest.h +++ b/sntp/tests/c_fileHandlingTest.h @@ -46,7 +46,7 @@ const char * CreatePath(const char* filename, enum DirectoryType argument) { strcat(path,filename); - + printf("PATH IS : %s\n",path); return path; } diff --git a/sntp/tests/kodFile.c b/sntp/tests/kodFile.c index d84c1a0c4..feb648894 100644 --- a/sntp/tests/kodFile.c +++ b/sntp/tests/kodFile.c @@ -75,7 +75,7 @@ void test_ReadFileWithBlankLines() { void test_WriteEmptyFile() { kod_db_file = estrdup(CreatePath("kod-output-blank", OUTPUT_DIR)); - + printf("kod PATH: %s\n",kod_db_file); write_kod_db(); // Open file and ensure that the filesize is 0 bytes. @@ -90,7 +90,7 @@ void test_WriteEmptyFile() { void test_WriteFileWithSingleEntry() { kod_db_file = estrdup(CreatePath("kod-output-single", OUTPUT_DIR)); - + printf("kod PATH: %s\n",kod_db_file); add_entry("host1", "DENY"); // Here we must manipulate the timestamps, so they match the one in @@ -113,7 +113,7 @@ void test_WriteFileWithSingleEntry() { void test_WriteFileWithMultipleEntries() { kod_db_file = estrdup(CreatePath("kod-output-multiple", OUTPUT_DIR)); - + printf("kod PATH: %s\n",kod_db_file); add_entry("example.com", "RATE"); add_entry("192.0.2.1", "DENY"); add_entry("192.0.2.5", "RSTR");