Home
last modified time | relevance | path

Searched refs:tmp_path (Results 1 – 14 of 14) sorted by relevance

/qemu/tests/unit/
H A Dtest-logging.c100 gchar const *tmp_path = data; in test_parse_path() local
103 set_log_path_tmp(tmp_path, "qemu.log", &error_abort); in test_parse_path()
104 set_log_path_tmp(tmp_path, "qemu-%d.log", &error_abort); in test_parse_path()
105 set_log_path_tmp(tmp_path, "qemu.log.%d", &error_abort); in test_parse_path()
107 set_log_path_tmp(tmp_path, "qemu-%d%d.log", &err); in test_parse_path()
196 g_autofree gchar *tmp_path = g_dir_make_tmp("qemu-test-logging.XXXXXX", NULL); in main() local
200 g_assert_nonnull(tmp_path); in main()
203 g_test_add_data_func("/logging/parse_path", tmp_path, test_parse_path); in main()
205 tmp_path, test_logfile_write); in main()
207 tmp_path, test_logfile_lock); in main()
[all …]
H A Dtest-char.c523 g_assert(g_rmdir(tmp_path) == 0); in char_pipe_test()
526 g_free(tmp_path); in char_pipe_test()
1236 char *fifo = g_build_filename(tmp_path, "fifo", NULL); in char_file_fifo_test()
1237 char *out = g_build_filename(tmp_path, "out", NULL); in char_file_fifo_test()
1283 g_rmdir(tmp_path); in char_file_fifo_test()
1284 g_free(tmp_path); in char_file_fifo_test()
1305 out = g_build_filename(tmp_path, "out", NULL); in char_file_test_internal()
1323 g_rmdir(tmp_path); in char_file_test_internal()
1324 g_free(tmp_path); in char_file_test_internal()
1450 g_rmdir(tmp_path); in char_hotswap_test()
[all …]
/qemu/tests/qtest/
H A Dtpm-tis-test.c30 char *args, *tmp_path = g_dir_make_tmp("qemu-tpm-tis-test.XXXXXX", NULL); in main() local
39 test.addr->u.q_unix.path = g_build_filename(tmp_path, "sock", NULL); in main()
77 g_rmdir(tmp_path); in main()
78 g_free(tmp_path); in main()
H A Dtpm-tis-device-test.c34 char *tmp_path = g_dir_make_tmp("qemu-tpm-tis-device-test.XXXXXX", NULL); in main() local
45 test.addr->u.q_unix.path = g_build_filename(tmp_path, "sock", NULL); in main()
84 g_rmdir(tmp_path); in main()
85 g_free(tmp_path); in main()
H A Dide-test.c125 static char *tmp_path[2]; variable
315 tmp_path[0], "testdisk", "version"); in test_bmdma_setup()
577 tmp_path[0]); in test_specify()
671 tmp_path[0], tmp_path[1]); in test_diagnostic()
737 tmp_path[0]); in test_flush()
788 debug_path, tmp_path[0]); in test_pci_retry_flush()
967 fh = fopen(tmp_path[0], "wb+"); in cdrom_pio_impl()
1068 fh = fopen(tmp_path[0], "wb+"); in test_cdrom_dma()
1113 fd = g_mkstemp(tmp_path[i]); in main()
1147 unlink(tmp_path[i]); in main()
[all …]
H A Dbios-tables-test.c1480 char *tmp_path = g_dir_make_tmp(tmp_dir_name, NULL); in test_acpi_tcg_tpm() local
1516 g_rmdir(tmp_path); in test_acpi_tcg_tpm()
1518 g_free(tmp_path); in test_acpi_tcg_tpm()
1881 g_assert(g_rmdir(tmp_path) == 0); in test_acpi_erst()
1882 g_free(tmp_path); in test_acpi_erst()
1911 g_assert(g_rmdir(tmp_path) == 0); in test_acpi_microvm_acpi_erst()
1912 g_free(tmp_path); in test_acpi_microvm_acpi_erst()
2008 tmp_path, tmp_path, tmp_path, tmp_path, in test_acpi_q35_cxl()
2009 tmp_path, tmp_path, tmp_path, tmp_path); in test_acpi_q35_cxl()
2013 g_assert(g_rmdir(tmp_path) == 0); in test_acpi_q35_cxl()
[all …]
H A Dvirtio-scsi-test.c271 g_autofree char *tmp_path = NULL; in test_iothread_attach_node() local
285 fd = g_file_open_tmp("qtest.XXXXXX", &tmp_path, NULL); in test_iothread_attach_node()
295 mkqcow2(tmp_path, 64); in test_iothread_attach_node()
303 tmp_path); in test_iothread_attach_node()
311 unlink(tmp_path); in test_iothread_attach_node()
H A Dtpm-crb-test.c143 char *args, *tmp_path = g_dir_make_tmp("qemu-tpm-crb-test.XXXXXX", NULL); in main() local
152 test.addr->u.q_unix.path = g_build_filename(tmp_path, "sock", NULL); in main()
176 g_rmdir(tmp_path); in main()
177 g_free(tmp_path); in main()
H A Dahci-test.c44 static char *tmp_path; variable
1114 tmp_path, imgfmt); in test_flush_retry()
1164 imgfmt, tmp_path); in ahci_migrate_simple()
1226 tmp_path, imgfmt); in ahci_halted_io_test()
1292 tmp_path, imgfmt); in ahci_migrate_halted_io()
1300 tmp_path, imgfmt, uri); in ahci_migrate_halted_io()
1973 tmp_path = g_strdup_printf("%s/qtest.XXXXXX", base); in main()
1974 fd = g_mkstemp(tmp_path); in main()
1979 mkqcow2(tmp_path, TEST_IMAGE_SIZE_MB_LARGE); in main()
2050 unlink(tmp_path); in main()
[all …]
H A Dtpm-tis-i2c-test.c604 char *tmp_path = g_dir_make_tmp("qemu-tpm-tis-i2c-test.XXXXXX", NULL); in main() local
613 test.addr->u.q_unix.path = g_build_filename(tmp_path, "sock", NULL); in main()
659 g_rmdir(tmp_path); in main()
660 g_free(tmp_path); in main()
H A Daspeed_smc-test.c613 g_autofree char *tmp_path = NULL; in main() local
619 fd = g_file_open_tmp("qtest.m25p80.XXXXXX", &tmp_path, NULL); in main()
627 tmp_path); in main()
647 unlink(tmp_path); in main()
H A Dufs-test.c562 char *tmp_path = drive_create(); in ufs_blk_test_setup() local
567 tmp_path); in ufs_blk_test_setup()
H A Dvirtio-blk-test.c776 char *tmp_path = drive_create(); in virtio_blk_test_setup() local
783 tmp_path); in virtio_blk_test_setup()
/qemu/tests/qtest/fuzz/
H A Dvirtio_blk_fuzz.c174 char *tmp_path = drive_create(); in virtio_blk_test_setup() local
179 tmp_path); in virtio_blk_test_setup()