Skip to content

Commit 9b5cf1c

Browse files
committed
ci(fuzz): enable double in fuzzing workflow
1 parent 5468897 commit 9b5cf1c

2 files changed

Lines changed: 4 additions & 2 deletions

File tree

.github/workflows/fuzzing.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@ jobs:
2525
run: |
2626
cmake -S . -B build-fuzz -G Ninja \
2727
-DCONFIG_CTSHELL_ENABLE_FUZZING=ON \
28+
-DCONFIG_CTSHELL_USE_DOUBLE=ON \
2829
-DCMAKE_C_COMPILER=clang
2930
3031
- name: Build fuzz target

test/fuzz/ctshell_fuzz.c

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,17 +28,18 @@ static int cmd_fuzz_complex(int argc, char *argv[]) {
2828
ctshell_expect_bool(&parser, "-v", "--verbose");
2929
ctshell_expect_verb(&parser, "start");
3030
ctshell_expect_verb(&parser, "stop");
31-
#ifdef CONFIG_CTSHELL_USE_DOUBLE
3231
ctshell_expect_double(&parser, "-d", "--double");
33-
#endif
32+
3433
ctshell_args_parse(&parser);
3534
int i_val = ctshell_get_int(&parser, "-i");
3635
char *s_val = ctshell_get_str(&parser, "-s");
3736
int b_val = ctshell_get_bool(&parser, "-v");
37+
double d_val = ctshell_get_double(&parser, "-d");
3838

3939
CTSHELL_UNUSED_PARAM(i_val);
4040
CTSHELL_UNUSED_PARAM(s_val);
4141
CTSHELL_UNUSED_PARAM(b_val);
42+
CTSHELL_UNUSED_PARAM(d_val);
4243

4344
return 0;
4445
}

0 commit comments

Comments
 (0)