Lines Matching defs:file

173 litest_fail_condition(const char *file,
189 litest_log("in %s() (%s:%d)\n", func, file, line);
196 litest_fail_comparison_int(const char *file,
207 litest_log("in %s() (%s:%d)\n", func, file, line);
214 litest_fail_comparison_double(const char *file,
225 litest_log("in %s() (%s:%d)\n", func, file, line);
232 litest_fail_comparison_ptr(const char *file,
238 litest_log("in %s() (%s:%d)\n", func, file, line);
784 struct created_file *file = zalloc(sizeof(*file));
806 file->path = path;
807 list_insert(created_files, &file->link);
945 * - every fork writes out a separate junit.xml file. gitlab is better
947 * this across forks to write out only one file.
949 * us minimal information. the libcheck XML file has more info like
1359 struct created_file *file;
1361 file = zalloc(sizeof(*file));
1362 file->path = safe_strdup(dest);
1367 suffixlen = file->path +
1368 strlen(file->path) -
1369 rindex(file->path, '.');
1370 out = mkstemps(file->path, suffixlen);
1372 out = open(file->path, O_CREAT|O_WRONLY, 0644);
1375 litest_abort_msg("Failed to write to file %s (%s)\n",
1376 file->path,
1378 litest_assert_int_ne(chmod(file->path, 0644), -1);
1388 litest_abort_msg("Failed to open file %s (%s)\n",
1391 /* lazy, just check for error and empty file copy */
1401 return file;
1410 "# This is a run-time file for the libinput test suite and\n"
1412 "# running, remove this file\n"
1414 struct created_file *file;
1419 file = litest_copy_file(UDEV_TEST_DEVICE_RULE_FILE,
1423 list_insert(created_files_list, &file->link);
1430 file = litest_copy_file(UDEV_DEVICE_GROUPS_FILE,
1434 list_insert(created_files_list, &file->link);
1436 file = litest_copy_file(UDEV_FUZZ_OVERRIDE_RULE_FILE,
1440 list_insert(created_files_list, &file->link);
1491 struct created_file *file;
1500 file = litest_copy_file(dest, src, NULL, true);
1501 list_append(created_files_list, &file->link);
1521 struct created_file *file = zalloc(sizeof(*file));
1522 file->path = path;
1523 list_insert(created_files_list, &file->link);
1532 struct created_file *file = NULL;
1547 file = zalloc(sizeof *file);
1548 file->path = safe_strdup(tmpdir);
1553 list_append(created_files_list, &file->link);
4687 " --xml-output=/path/to/file-XXXXXXX.xml\n"
4689 " to the given files. The file must match the format\n"