Merge pull request #110 from bendem/feature/error-code

Return the status of the device as error code
This commit is contained in:
Michel Machado 2019-03-04 13:42:41 -03:00 committed by GitHub
commit 3a25af5db3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -508,7 +508,7 @@ static int test_device(struct args *args)
}
free((void *)final_dev_filename);
return 0;
return fake_type == FKTY_GOOD ? 0 : 100 + fake_type;
}
int main(int argc, char **argv)