Fix input_which_test comparison
This commit is contained in:
parent
c3a187aa0f
commit
4a6d170650
@ -728,7 +728,7 @@ static int DeepState_RunSingleSavedTestCase(void) {
|
||||
|
||||
for (test = DeepState_FirstTest(); test != NULL; test = test->prev) {
|
||||
if (HAS_FLAG_input_which_test) {
|
||||
if (strncmp(FLAGS_input_which_test, test->test_name, strlen(FLAGS_input_which_test)) == 0) {
|
||||
if (strcmp(FLAGS_input_which_test, test->test_name) == 0) {
|
||||
break;
|
||||
}
|
||||
} else {
|
||||
@ -780,7 +780,7 @@ static int DeepState_RunSingleSavedTestDir(void) {
|
||||
|
||||
for (test = DeepState_FirstTest(); test != NULL; test = test->prev) {
|
||||
if (HAS_FLAG_input_which_test) {
|
||||
if (strncmp(FLAGS_input_which_test, test->test_name, strlen(FLAGS_input_which_test)) == 0) {
|
||||
if (strcmp(FLAGS_input_which_test, test->test_name) == 0) {
|
||||
break;
|
||||
}
|
||||
} else {
|
||||
|
||||
@ -764,7 +764,7 @@ int DeepState_Fuzz(void){
|
||||
|
||||
for (test = DeepState_FirstTest(); test != NULL; test = test->prev) {
|
||||
if (HAS_FLAG_input_which_test) {
|
||||
if (strncmp(FLAGS_input_which_test, test->test_name, strlen(FLAGS_input_which_test)) == 0) {
|
||||
if (strcmp(FLAGS_input_which_test, test->test_name) == 0) {
|
||||
break;
|
||||
}
|
||||
} else {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user