| 3555 | } |
| 3556 | |
| 3557 | static bool cli_uninstall_capture_text(FILE *file, char *out, size_t capacity) { |
| 3558 | if (fseek(file, 0, SEEK_SET) != 0) { |
| 3559 | return false; |
| 3560 | } |
| 3561 | size_t n = fread(out, 1, capacity - 1, file); |
| 3562 | out[n] = '\0'; |
| 3563 | return !ferror(file); |
| 3564 | } |
| 3565 | |
| 3566 | TEST(cli_uninstall_auto_answers_keep_indexes_without_delete_indexes) { |
| 3567 | char *answers[] = {"--yes", "-y", "--no", "-n"}; |