-
Notifications
You must be signed in to change notification settings - Fork 508
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
4 changed files
with
26 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
diff --git a/src/dtx/tests/dtx_tests.c b/src/dtx/tests/dtx_tests.c | ||
index b06a2f4ea8..7236a2bda0 100644 | ||
--- a/src/dtx/tests/dtx_tests.c | ||
+++ b/src/dtx/tests/dtx_tests.c | ||
@@ -61,6 +61,7 @@ int | ||
main(int argc, char **argv) | ||
{ | ||
int rc = 0; | ||
+ char filter[1024]; | ||
int nr_failed = 0; | ||
int opt = 0; | ||
int index = 0; | ||
@@ -107,8 +108,6 @@ main(int argc, char **argv) | ||
#if CMOCKA_FILTER_SUPPORTED == 1 /** requires cmocka 1.1.5 */ | ||
{ | ||
/** Add wildcards for easier filtering */ | ||
- char filter[sizeof(optarg) + 2]; | ||
- | ||
sprintf(filter, "*%s*", optarg); | ||
cmocka_set_test_filter(filter); | ||
printf("Test filter: %s\n", filter); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters