rnp
rnp copied to clipboard
Remove CFG_USERINPUTFD
Description
CFG_USERINPUTFD is used only for tests to mock user input. There should be better way to do that (updating test cases to use CLI as an option).
@ni4 do we need stdin
in rnp_tests
for anything? We can temporarily close stdin
and create the pipe to feed user input instead where file descriptor 0 is a receiving end of the pipe.
@antonsviridenko Sorry for a late followup. Another solutions could be putting the CFG_USERINPUTFD stuff in the RNP_RUN_TESTS define.