Skip to content

Commit

Permalink
chore(linux): Fix bug and update documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
ermshiperete committed Sep 20, 2023
1 parent e6017e8 commit 704ba55
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 2 deletions.
2 changes: 1 addition & 1 deletion linux/ibus-keyman/src/KeymanSystemServiceClient.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ gint32 KeymanSystemServiceClient::GetCapsLockIndicator() {
KEYMAN_INTERFACE_NAME, "GetCapsLockIndicator", error, &msg, "");
if (result < 0) {
g_error("%s: Failed to call method GetCapsLockIndicator: %s. %s. %s.",
__FUNCTION__, strerror(-result), error->name, error->message);
__FUNCTION__, strerror(-result), error ? error->name : "-", error ? error->message : "-");
return -1;
}

Expand Down
5 changes: 5 additions & 0 deletions linux/ibus-keyman/tests/KmDbusTestServer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -139,6 +139,11 @@ void KmDbusTestServer::Loop()

int
main(int argc, char *argv[]) {
if (!g_file_test(KEYMAN_TEST_SERVICE_PATH, G_FILE_TEST_IS_DIR)) {
std::cerr << "ERROR: Directory " << KEYMAN_TEST_SERVICE_PATH << " doesn't exist! Exiting." << std::endl;
return 1;
}

KmDbusTestServer testServer;
testServer.Loop();

Expand Down
2 changes: 1 addition & 1 deletion linux/ibus-keyman/tests/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ are stored in `~/.config/glib-2.0/settings/keyfile`.

## Running tests

The tests get run as part of building `ibus-keyman`, more specifically when running `make check`.
The tests get run as part of building `ibus-keyman`, more specifically when running `build.sh test`.

### Run all tests

Expand Down

0 comments on commit 704ba55

Please sign in to comment.