Return the status of the device as error code

Closes #106
This commit is contained in:
bendem 2019-03-04 16:00:36 +01:00
parent fead723be5
commit 90ed489c2a

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)