rnp icon indicating copy to clipboard operation
rnp copied to clipboard

Remove CFG_USERINPUTFD

Open ni4 opened this issue 3 years ago • 2 comments

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 avatar Aug 20 '21 14:08 ni4

@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 avatar Jun 13 '23 18:06 antonsviridenko

@antonsviridenko Sorry for a late followup. Another solutions could be putting the CFG_USERINPUTFD stuff in the RNP_RUN_TESTS define.

ni4 avatar Jun 19 '23 14:06 ni4