int main(POSSIBLY_UNUSED(int argc), char **argv) { EXPECT_ZERO(test_run_cmd()); EXPECT_ZERO(test_run_cmd_get_output()); EXPECT_ZERO(test_get_colocated_path(argv[0])); EXPECT_ZERO(test_run_cmd_give_input(argv[0], "abc")); EXPECT_ZERO(test_run_cmd_give_input(argv[0], "")); EXPECT_ZERO(test_run_cmd_give_input(argv[0], "foobarbaz")); EXPECT_ZERO(test_shell_escape()); return EXIT_SUCCESS; }
int main(int argc, char *argv[]) { log_set_max_level(LOG_DEBUG); log_parse_environment(); log_open(); test_cescape(); test_cunescape(); test_shell_escape(); test_shell_maybe_quote(); return 0; }