aboutsummaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
Diffstat (limited to 'tests')
-rw-r--r--tests/module-probe.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/module-probe.c b/tests/module-probe.c
index de1fbf8..701b6aa 100644
--- a/tests/module-probe.c
+++ b/tests/module-probe.c
@@ -6,7 +6,7 @@
*
* module-probe FILE.pmod INPUT...
*
- * Each INPUT is a key input's name, pressed. The module must not read the
+ * Each INPUT is a key input's name, pressed (its message, no fields). The module must not read the
* clock (now): the two runs are not at the same time. Prints a line of
* JSON: the inputs applied, the ops ranged, and each number state's value;
* exits 1 at the first difference, naming the state. */
@@ -92,7 +92,7 @@ int main(int argc, char **argv) {
return 2;
}
PureResult results[2];
- for (int k = 0; k < 2; ++k) results[k] = pure_app_input(&apps[k], (uint32_t)input, PURE_EDGE_DOWN);
+ for (int k = 0; k < 2; ++k) results[k] = pure_app_message(&apps[k], (uint32_t)input, (PureSpan){0});
int state = differs(&modules[0], &apps[0], &apps[1]);
if (results[0] != results[1] || state >= 0) {
fprintf(stderr, "module-probe: after %s (input %d): %s differs ranged and not (results %d, %d)\n", argv[i],