summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorDrashna Jaelre <drashna@live.com>2023-05-20 13:22:46 -0700
committerGitHub <noreply@github.com>2023-05-20 21:22:46 +0100
commitd7220da5cb775f4da139aea141bdd1880eab060a (patch)
treea1bedb261bd91220c69634f753272f4ba5327aa2 /tests
parent6a7ba7a29d72768b022f2fd89e50a781325020e0 (diff)
[Bug] Fix issue with Repeat Key-Combo test (#21005)
Diffstat (limited to 'tests')
-rw-r--r--tests/repeat_key/repeat_key_combo/test.mk1
-rw-r--r--tests/repeat_key/repeat_key_combo/test_combos.c8
-rw-r--r--tests/repeat_key/repeat_key_combo/test_repeat_key_combo.cpp7
3 files changed, 9 insertions, 7 deletions
diff --git a/tests/repeat_key/repeat_key_combo/test.mk b/tests/repeat_key/repeat_key_combo/test.mk
index db6ea7789a..aac41acaeb 100644
--- a/tests/repeat_key/repeat_key_combo/test.mk
+++ b/tests/repeat_key/repeat_key_combo/test.mk
@@ -16,3 +16,4 @@
REPEAT_KEY_ENABLE = yes
COMBO_ENABLE = yes
+INTROSPECTION_KEYMAP_C = test_combos.c
diff --git a/tests/repeat_key/repeat_key_combo/test_combos.c b/tests/repeat_key/repeat_key_combo/test_combos.c
new file mode 100644
index 0000000000..86de89e193
--- /dev/null
+++ b/tests/repeat_key/repeat_key_combo/test_combos.c
@@ -0,0 +1,8 @@
+// Copyright 2023 Stefan Kerkmann (@KarlK90)
+// Copyright 2023 @filterpaper
+// Copyright 2023 Nick Brassel (@tzarc)
+// SPDX-License-Identifier: GPL-2.0-or-later
+#include "quantum.h"
+
+const uint16_t xy_combo[] PROGMEM = {KC_X, KC_Y, COMBO_END};
+combo_t key_combos[] = {COMBO(xy_combo, KC_Q)};
diff --git a/tests/repeat_key/repeat_key_combo/test_repeat_key_combo.cpp b/tests/repeat_key/repeat_key_combo/test_repeat_key_combo.cpp
index 2d2fbaa966..c2d96a0dfe 100644
--- a/tests/repeat_key/repeat_key_combo/test_repeat_key_combo.cpp
+++ b/tests/repeat_key/repeat_key_combo/test_repeat_key_combo.cpp
@@ -24,13 +24,6 @@ using ::testing::InSequence;
namespace {
-extern "C" {
-// Define a combo: KC_X + KC_Y = KC_Q.
-const uint16_t xy_combo[] PROGMEM = {KC_X, KC_Y, COMBO_END};
-combo_t key_combos[] = {COMBO(xy_combo, KC_Q)};
-uint16_t COMBO_LEN = sizeof(key_combos) / sizeof(*key_combos);
-} // extern "C"
-
class RepeatKey : public TestFixture {};
// Tests repeating a combo, KC_X + KC_Y = KC_Q, by typing