1
0
mirror of https://github.com/moparisthebest/wget synced 2024-07-03 16:38:41 -04:00

Move test_* function protoypes from test.c to test.h

* src/test.c: Remove test_* function prototypes, make tests_run static
* src/test.h: Add test_* function protoypes
This commit is contained in:
Tim Rühsen 2015-06-13 22:34:36 +02:00
parent fd3a3245eb
commit c6ac51d5bc
2 changed files with 1 additions and 13 deletions

View File

@ -41,19 +41,9 @@ as that of the covered work. */
#error "TESTING not set!!!" #error "TESTING not set!!!"
#endif #endif
const char *test_parse_content_disposition(void);
const char *test_subdir_p(void);
const char *test_dir_matches_p(void);
const char *test_commands_sorted(void);
const char *test_cmd_spec_restrict_file_names(void);
const char *test_path_simplify (void);
const char *test_append_uri_pathel(void);
const char *test_are_urls_equal(void);
const char *test_is_robots_txt_url(void);
const char *program_argstring = "TEST"; const char *program_argstring = "TEST";
int tests_run; static int tests_run;
static const char * static const char *
all_tests(void) all_tests(void)

View File

@ -43,8 +43,6 @@ do { \
puts("PASSED\n"); \ puts("PASSED\n"); \
} while (0) } while (0)
extern int tests_run;
const char *test_parse_content_disposition(void); const char *test_parse_content_disposition(void);
const char *test_commands_sorted(void); const char *test_commands_sorted(void);
const char *test_cmd_spec_restrict_file_names(void); const char *test_cmd_spec_restrict_file_names(void);