mirror of
https://github.com/fish-shell/fish-shell.git
synced 2025-02-02 07:47:15 +08:00
fish_tests: Initialize some collections
For some reason this'd crash on NetBSD otherwise.
This commit is contained in:
parent
dbeaa0c8de
commit
fdbbe9f69d
|
@ -442,7 +442,7 @@ static char *str2hex(const char *input) {
|
||||||
/// comes back through double conversion.
|
/// comes back through double conversion.
|
||||||
static void test_convert() {
|
static void test_convert() {
|
||||||
int i;
|
int i;
|
||||||
std::vector<char> sb;
|
std::vector<char> sb {};
|
||||||
|
|
||||||
say(L"Testing wide/narrow string conversion");
|
say(L"Testing wide/narrow string conversion");
|
||||||
|
|
||||||
|
@ -3300,7 +3300,7 @@ class history_tests_t {
|
||||||
};
|
};
|
||||||
|
|
||||||
static wcstring random_string() {
|
static wcstring random_string() {
|
||||||
wcstring result;
|
wcstring result = L"";
|
||||||
size_t max = 1 + rand() % 32;
|
size_t max = 1 + rand() % 32;
|
||||||
while (max--) {
|
while (max--) {
|
||||||
wchar_t c = 1 + rand() % ESCAPE_TEST_CHAR;
|
wchar_t c = 1 + rand() % ESCAPE_TEST_CHAR;
|
||||||
|
|
Loading…
Reference in New Issue
Block a user