make option changeable

This commit is contained in:
Wengier
2021-11-24 02:55:39 -05:00
parent f6866d20c8
commit d8dce08ddf
3 changed files with 35 additions and 28 deletions

View File

@@ -259,8 +259,10 @@ TEST_F(DOS_FilesTest, DOS_MakeName_No_SlashSlash)
}
// Exhaustive test of all good chars
/*TEST_F(DOS_FilesTest, DOS_MakeName_GoodChars)
TEST_F(DOS_FilesTest, DOS_MakeName_GoodChars)
{
safe_strcpy(Drives[25]->curdir, "");
bool oldlfn = uselfn;
unsigned char start_letter = 'A';
unsigned char start_number = '0';
std::vector<unsigned char> symbols{'$', '#', '@', '(', ')', '!', '%',
@@ -275,15 +277,16 @@ TEST_F(DOS_FilesTest, DOS_MakeName_No_SlashSlash)
static_cast<unsigned char>(start_number + ni),
c,
};
std::string test_input(reinterpret_cast<char *>(
input_array),
3);
assert_DOS_MakeName(test_input.c_str(), true,
test_input, 25);
std::string test_input(reinterpret_cast<char *>(input_array), 3);
uselfn = false;
assert_DOS_MakeName(test_input.c_str(), true, test_input, 25);
uselfn = true;
assert_DOS_MakeName(test_input.c_str(), true, test_input, 25);
}
}
}
}*/
uselfn = oldlfn;
}
TEST_F(DOS_FilesTest, DOS_MakeName_Colon_Illegal_Paths)
{