aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/lib.c38
1 files changed, 19 insertions, 19 deletions
diff --git a/src/lib.c b/src/lib.c
index 82d2720..b2f31f3 100644
--- a/src/lib.c
+++ b/src/lib.c
@@ -2224,25 +2224,6 @@ cleanup:
return ret;
}
-#ifdef TEST
-void unit_tests_gistatic(void) {
- dump_translatable_strings();
-
- git_libgit2_init();
- test_underscore();
- test_remove_suffix();
- test_strjoin();
- test_strsjoin();
- test_formatted_date();
- test_max();
- test_escape_html();
- test_should_trim();
- test_strtrim();
- test_last_commit_date();
- git_libgit2_shutdown();
-}
-#endif
-
int gistatic_main(int argc, char *argv[]) {
int ret = EXIT_SUCCESS;
bool cleanup_libgit = false;
@@ -2362,3 +2343,22 @@ cleanup:
}
return ret;
}
+
+#ifdef TEST
+void unit_tests_gistatic(void) {
+ dump_translatable_strings();
+
+ git_libgit2_init();
+ test_underscore();
+ test_remove_suffix();
+ test_strjoin();
+ test_strsjoin();
+ test_formatted_date();
+ test_max();
+ test_escape_html();
+ test_should_trim();
+ test_strtrim();
+ test_last_commit_date();
+ git_libgit2_shutdown();
+}
+#endif