Skip to content

Commit 4d654c2

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

2 files changed

Lines changed: 7 additions & 0 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: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,10 +35,16 @@ static int cmd_fuzz_complex(int argc, char *argv[]) {
3535
int i_val = ctshell_get_int(&parser, "-i");
3636
char *s_val = ctshell_get_str(&parser, "-s");
3737
int b_val = ctshell_get_bool(&parser, "-v");
38+
#ifdef CONFIG_CTSHELL_USE_DOUBLE
39+
double d_val = ctshell_get_double(&parser, "-d");
40+
#endif
3841

3942
CTSHELL_UNUSED_PARAM(i_val);
4043
CTSHELL_UNUSED_PARAM(s_val);
4144
CTSHELL_UNUSED_PARAM(b_val);
45+
#ifdef CONFIG_CTSHELL_USE_DOUBLE
46+
CTSHELL_UNUSED_PARAM(d_val);
47+
#endif
4248

4349
return 0;
4450
}

0 commit comments

Comments
 (0)