File tests/commands/input_tests.c changed (mode: 100644) (index b2250b0fd..3fe224aa6) |
... |
... |
test_qmark_and_bg(void) |
586 |
586 |
assert_true(cmdi.qmark); |
assert_true(cmdi.qmark); |
587 |
587 |
} |
} |
588 |
588 |
|
|
|
589 |
|
static void |
|
590 |
|
test_extra_long_command_name(void) |
|
591 |
|
{ |
|
592 |
|
char cmd_name[1024]; |
|
593 |
|
|
|
594 |
|
memset(cmd_name, 'a', sizeof(cmd_name) - 1); |
|
595 |
|
cmd_name[sizeof(cmd_name) - 1] = '\0'; |
|
596 |
|
|
|
597 |
|
assert_false(execute_cmd(cmd_name) == 0); |
|
598 |
|
} |
|
599 |
|
|
589 |
600 |
void |
void |
590 |
601 |
input_tests(void) |
input_tests(void) |
591 |
602 |
{ |
{ |
|
... |
... |
input_tests(void) |
620 |
631 |
run_test(test_bg_and_no_args); |
run_test(test_bg_and_no_args); |
621 |
632 |
run_test(test_short_forms); |
run_test(test_short_forms); |
622 |
633 |
run_test(test_qmark_and_bg); |
run_test(test_qmark_and_bg); |
|
634 |
|
run_test(test_extra_long_command_name); |
623 |
635 |
|
|
624 |
636 |
test_fixture_end(); |
test_fixture_end(); |
625 |
637 |
} |
} |