]> git.ipfire.org Git - thirdparty/ntp.git/commitdiff
c_fileHandlingTest.h:
authorDamir Tomic <viperus@ntp.org>
Fri, 19 Jun 2015 13:51:57 +0000 (13:51 +0000)
committerDamir Tomic <viperus@ntp.org>
Fri, 19 Jun 2015 13:51:57 +0000 (13:51 +0000)
  added debug printfs, changed path value
kodFile.c:
  added debug printfs

bk: 55841e7dHLCkt8fgrofgwXKPQJug-g

sntp/tests/c_fileHandlingTest.h
sntp/tests/kodFile.c

index 2ce075c6071a94f445c2e27397462820a20711ee..b9cb12ad61ab3fd61ac6b459d2b1cb0ad47b9a6a 100644 (file)
@@ -46,7 +46,7 @@ const char * CreatePath(const char* filename, enum DirectoryType argument) {
 
        
        strcat(path,filename);
-
+       printf("PATH IS : %s\n",path);
        return path;
 }
 
index d84c1a0c4cec0e5c3e9fdaa1924e326e58ea9f2d..feb6488944a3c3fc985399a6c6a85ac7c6862188 100644 (file)
@@ -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");