ide-test.c (7fd51e68c34fcefdb4d6fd646ed3346f780f89f4) ide-test.c (fedcc3793ef27ad17165536f1aa7e60700eb8067)
1/*
2 * IDE test cases
3 *
4 * Copyright (c) 2013 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

--- 114 unchanged lines hidden (view full) ---

123static QGuestAllocator guest_malloc;
124
125static char tmp_path[] = "/tmp/qtest.XXXXXX";
126static char debug_path[] = "/tmp/qtest-blkdebug.XXXXXX";
127
128static QTestState *ide_test_start(const char *cmdline_fmt, ...)
129{
130 QTestState *qts;
1/*
2 * IDE test cases
3 *
4 * Copyright (c) 2013 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

--- 114 unchanged lines hidden (view full) ---

123static QGuestAllocator guest_malloc;
124
125static char tmp_path[] = "/tmp/qtest.XXXXXX";
126static char debug_path[] = "/tmp/qtest-blkdebug.XXXXXX";
127
128static QTestState *ide_test_start(const char *cmdline_fmt, ...)
129{
130 QTestState *qts;
131 g_autofree char *full_fmt = g_strdup_printf("-machine pc %s", cmdline_fmt);
131 va_list ap;
132
133 va_start(ap, cmdline_fmt);
132 va_list ap;
133
134 va_start(ap, cmdline_fmt);
134 qts = qtest_vinitf(cmdline_fmt, ap);
135 qts = qtest_vinitf(full_fmt, ap);
135 va_end(ap);
136
137 pc_alloc_init(&guest_malloc, qts, 0);
138
139 return qts;
140}
141
142static void ide_test_quit(QTestState *qts)

--- 924 unchanged lines hidden ---
136 va_end(ap);
137
138 pc_alloc_init(&guest_malloc, qts, 0);
139
140 return qts;
141}
142
143static void ide_test_quit(QTestState *qts)

--- 924 unchanged lines hidden ---