]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
Remove debugging statements
authorArran Cudbard-Bell <a.cudbardb@freeradius.org>
Wed, 31 Mar 2021 21:55:46 +0000 (22:55 +0100)
committerArran Cudbard-Bell <a.cudbardb@freeradius.org>
Wed, 31 Mar 2021 21:55:46 +0000 (22:55 +0100)
src/bin/unit_test_attribute.c

index ced34b4bbd149e63b4d7d317e5c00ed383e1c72c..ee98f9ddc99852d627368d99e95c227e37fe5f48 100644 (file)
@@ -3097,40 +3097,29 @@ int main(int argc, char *argv[])
        fr_openssl_init();
 #endif
 
-       FR_FAULT_LOG("Before dl_module_load_init");
-       fr_dict_global_ctx_debug();
        dl_modules = dl_module_loader_init(NULL);
        if (!dl_modules) {
                fr_perror("unit_test_attribute");
                EXIT_WITH_FAILURE;
        }
 
-       FR_FAULT_LOG("After dl_module_loader_init");
-       fr_dict_global_ctx_debug();
        dl_loader = dl_loader_init(autofree, NULL, false, false);
        if (!dl_loader) {
                fr_perror("unit_test_attribute");
                EXIT_WITH_FAILURE;
        }
 
-       FR_FAULT_LOG("After dl_loader_init");
-       fr_dict_global_ctx_debug();
        config.dict_gctx = fr_dict_global_ctx_init(autofree, config.dict_dir);
        if (!config.dict_gctx) {
                fr_perror("unit_test_attribute");
                EXIT_WITH_FAILURE;
        }
 
-       FR_FAULT_LOG("After fr_dict_global_ctx_init");
-       fr_dict_global_ctx_debug();
        if (fr_dict_internal_afrom_file(&config.dict, FR_DICTIONARY_INTERNAL_DIR) < 0) {
                fr_perror("unit_test_attribute");
                EXIT_WITH_FAILURE;
        }
 
-       FR_FAULT_LOG("After fr_dict_internal_afrom_file");
-       fr_dict_global_ctx_debug();
-
        /*
         *      Load the custom dictionary
         */
@@ -3139,9 +3128,6 @@ int main(int argc, char *argv[])
                EXIT_WITH_FAILURE;
        }
 
-       FR_FAULT_LOG("fr_dict_read");
-       fr_dict_global_ctx_debug();
-
        /*
         *      Initialise the interpreter, registering operations.
         *      Needed because some keywords also register xlats.
@@ -3151,9 +3137,6 @@ int main(int argc, char *argv[])
                EXIT_WITH_FAILURE;
        }
 
-       FR_FAULT_LOG("After unlang_init_global and before requests");
-       fr_dict_global_ctx_debug();
-
        if (!xlat_register(NULL, "test", xlat_test, false)) {
                ERROR("Failed registering xlat");
                EXIT_WITH_FAILURE;
@@ -3223,9 +3206,6 @@ int main(int argc, char *argv[])
                }
        }
 
-       FR_FAULT_LOG("After running tests");
-       fr_dict_global_ctx_debug();
-
        /*
         *      Try really hard to free any allocated
         *      memory, so we get clean talloc reports.
@@ -3243,14 +3223,9 @@ cleanup:
                fr_perror("unit_test_attribute - dl_loader - ");        /* Print free order issues */
        }
        fr_dict_free(&config.dict);
-       FR_FAULT_LOG("After freeing config.dict");
-       fr_dict_global_ctx_debug();
 
        unlang_free_global();
 
-       FR_FAULT_LOG("After unlang_free");
-       fr_dict_global_ctx_debug();
-
        /*
         *      Dictionaries get freed towards the end
         *      because it breaks "autofree".