fdc-test.c (a69254a2b320e31d3aa63ca910b7aa02efcd5492) | fdc-test.c (fedcc3793ef27ad17165536f1aa7e60700eb8067) |
---|---|
1/* 2 * Floppy test cases. 3 * 4 * Copyright (c) 2012 Kevin Wolf <kwolf@redhat.com> 5 * 6 * Permission is hereby granted, free of charge, to any person obtaining a copy 7 * of this software and associated documentation files (the "Software"), to deal 8 * in the Software without restriction, including without limitation the rights --- 584 unchanged lines hidden (view full) --- 593 g_assert(fd >= 0); 594 ret = ftruncate(fd, TEST_IMAGE_SIZE); 595 g_assert(ret == 0); 596 close(fd); 597 598 /* Run the tests */ 599 g_test_init(&argc, &argv, NULL); 600 | 1/* 2 * Floppy test cases. 3 * 4 * Copyright (c) 2012 Kevin Wolf <kwolf@redhat.com> 5 * 6 * Permission is hereby granted, free of charge, to any person obtaining a copy 7 * of this software and associated documentation files (the "Software"), to deal 8 * in the Software without restriction, including without limitation the rights --- 584 unchanged lines hidden (view full) --- 593 g_assert(fd >= 0); 594 ret = ftruncate(fd, TEST_IMAGE_SIZE); 595 g_assert(ret == 0); 596 close(fd); 597 598 /* Run the tests */ 599 g_test_init(&argc, &argv, NULL); 600 |
601 qtest_start("-device floppy,id=floppy0"); | 601 qtest_start("-machine pc -device floppy,id=floppy0"); |
602 qtest_irq_intercept_in(global_qtest, "ioapic"); 603 qtest_add_func("/fdc/cmos", test_cmos); 604 qtest_add_func("/fdc/no_media_on_start", test_no_media_on_start); 605 qtest_add_func("/fdc/read_without_media", test_read_without_media); 606 qtest_add_func("/fdc/media_change", test_media_change); 607 qtest_add_func("/fdc/sense_interrupt", test_sense_interrupt); 608 qtest_add_func("/fdc/relative_seek", test_relative_seek); 609 qtest_add_func("/fdc/read_id", test_read_id); --- 16 unchanged lines hidden --- | 602 qtest_irq_intercept_in(global_qtest, "ioapic"); 603 qtest_add_func("/fdc/cmos", test_cmos); 604 qtest_add_func("/fdc/no_media_on_start", test_no_media_on_start); 605 qtest_add_func("/fdc/read_without_media", test_read_without_media); 606 qtest_add_func("/fdc/media_change", test_media_change); 607 qtest_add_func("/fdc/sense_interrupt", test_sense_interrupt); 608 qtest_add_func("/fdc/relative_seek", test_relative_seek); 609 qtest_add_func("/fdc/read_id", test_read_id); --- 16 unchanged lines hidden --- |