From 166bdec496a929931445bf7f5b7d01a5be4769f2 Mon Sep 17 00:00:00 2001 From: qbtf Date: Fri, 27 Sep 2024 01:34:46 +0800 Subject: [PATCH] Fix a test case matching an error message in PCRE library --- test/test_rdb_cli.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/test_rdb_cli.c b/test/test_rdb_cli.c index 3fcfac2..99e2c37 100644 --- a/test/test_rdb_cli.c +++ b/test/test_rdb_cli.c @@ -105,7 +105,7 @@ static void test_rdb_cli_filter_key(void **state) { static void test_rdb_cli_filter_invalid_input(void **state) { UNUSED(state); /* invalid regex */ - runSystemCmd(" $RDB_CLI_CMD ./test/dumps/single_key.rdb -k \"[*x\" json | grep \"Unmatched \\[\" > /dev/null"); + runSystemCmd(" $RDB_CLI_CMD ./test/dumps/single_key.rdb -k \"[*x\" json | grep \"FilterKey: Error compiling regular expression\" > /dev/null"); } static void test_rdb_cli_filter_type(void **state) {