Lines Matching full:open
191 TEST_ASSERT_VAL("failed to open fd directory", dir); in open_files_cnt()
255 /* Rest the internal dso open counter limit. */ in test__dso_data_cache()
264 /* and this is now our dso open FDs limit */ in test__dso_data_cache()
273 * Open dsos via dso__data_fd(), it opens the data in test__dso_data_cache()
274 * file and keep it open (unless open file limit). in test__dso_data_cache()
289 /* verify the first one is already open */ in test__dso_data_cache()
290 TEST_ASSERT_VAL("dsos[0] is not open", dso__data(machine.dsos.dsos[0])->fd != -1); in test__dso_data_cache()
292 /* open +1 dso to reach the allowed limit */ in test__dso_data_cache()
311 int fd = open("/dev/null", O_RDONLY); in new_limit()
329 /* Rest the internal dso open counter limit. */ in test__dso_data_reopen()
343 /* Make sure we are able to open 3 fds anyway */ in test__dso_data_reopen()
350 /* open dso_0 */ in test__dso_data_reopen()
354 /* open dso_1 */ in test__dso_data_reopen()
359 * open extra file descriptor and we just in test__dso_data_reopen()
362 fd_extra = open("/dev/null", O_RDONLY); in test__dso_data_reopen()
363 TEST_ASSERT_VAL("failed to open extra fd", fd_extra > 0); in test__dso_data_reopen()
365 /* open dso_2 */ in test__dso_data_reopen()
375 /* open dso_0 */ in test__dso_data_reopen()