]> git.ipfire.org Git - thirdparty/ntp.git/commitdiff
kodFile.c:
authorDamir Tomic <viperus@ntp.org>
Fri, 19 Jun 2015 21:52:11 +0000 (23:52 +0200)
committerDamir Tomic <viperus@ntp.org>
Fri, 19 Jun 2015 21:52:11 +0000 (23:52 +0200)
  removed debug printfs

bk: 55848f0bxHBevjx-PrxJ0yswzB44VQ

sntp/tests/kodFile.c

index ceacf2fd33c292b5f690834b0f18580cbaafa2dc..9bc616b610926f666d44fe22f266e46aead1abf4 100644 (file)
@@ -74,9 +74,9 @@ void test_ReadFileWithBlankLines() {
 }
 
 void test_WriteEmptyFile() {
-       //kod_db_file = estrdup(CreatePath("kod-output-blank", OUTPUT_DIR));
+       //kod_db_file = estrdup(CreatePath("kod-output-blank", OUTPUT_DIR)); //causing issues on psp-at1, replaced
        kod_db_file = estrdup("kod-output-blank");
-          printf("kod PATH: %s\n",kod_db_file);
+       //printf("kod PATH: %s\n",kod_db_file);
        write_kod_db();
 
        // Open file and ensure that the filesize is 0 bytes.
@@ -90,9 +90,9 @@ void test_WriteEmptyFile() {
 }
 
 void test_WriteFileWithSingleEntry() {
-       //kod_db_file = estrdup(CreatePath("kod-output-single", OUTPUT_DIR));
-       kod_db_file = estrdup("kod-output-single");
-    printf("kod PATH: %s\n",kod_db_file);
+       //kod_db_file = estrdup(CreatePath("kod-output-single", OUTPUT_DIR)); //causing issues on psp-at1, replaced
+       kod_db_file = estrdup("kod-output-single"); 
+       //printf("kod PATH: %s\n",kod_db_file);
        add_entry("host1", "DENY");
 
        // Here we must manipulate the timestamps, so they match the one in
@@ -114,9 +114,9 @@ void test_WriteFileWithSingleEntry() {
 }
 
 void test_WriteFileWithMultipleEntries() {
-       //kod_db_file = estrdup(CreatePath("kod-output-multiple", OUTPUT_DIR));
+       //kod_db_file = estrdup(CreatePath("kod-output-multiple", OUTPUT_DIR)); //causing issues on psp-at1, replaced
        kod_db_file = estrdup("kod-output-multiple");
-    printf("kod PATH: %s\n",kod_db_file);
+       //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");