mirror of
https://github.com/keymanapp/keyman.git
synced 2026-08-18 22:37:43 +00:00
test(core): fix a type conversion issue in the minimal test
- need a null string for either narrow or wide chars Fixes: #10968
This commit is contained in:
parent
3c82343218
commit
2300571ad8
1 changed files with 2 additions and 1 deletions
|
|
@ -21,7 +21,8 @@ int main(int argc, const char *argv[]) {
|
|||
km_core_keyboard * test_kb = nullptr;
|
||||
|
||||
km_core_status status;
|
||||
status = km_core_keyboard_load("", &test_kb);
|
||||
km_core_path_name nowhere = {0}; // this is a narrow or wide char string
|
||||
status = km_core_keyboard_load(nowhere, &test_kb);
|
||||
|
||||
std::cerr << "null km_core_keyboard_load = " << status << std::endl;
|
||||
assert(status == KM_CORE_STATUS_INVALID_ARGUMENT);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue