mirror of
https://github.com/izzy2lost/xemu.git
synced 2026-07-06 00:20:22 -07:00
Merge tag 'pull-request-2024-01-24' of https://gitlab.com/thuth/qemu into staging
* Test timeout fixes * Clean up URI code # -----BEGIN PGP SIGNATURE----- # # iQJFBAABCAAvFiEEJ7iIR+7gJQEY8+q5LtnXdP5wLbUFAmWw6SsRHHRodXRoQHJl # ZGhhdC5jb20ACgkQLtnXdP5wLbXsVQ//Ss33GMIu1aUEFsZTSUghUXPx8035zin/ # TugiIcLfcONxxCi+Q/jfUPowJ3TLwt0vdv3V73M94+XBDrWClLyJYuu8eew0EMZI # zqBl5AyO2hdGXxnF/wJAtdKfleUElJDooUyGPIlsJ2gXmmLi60qkQfKR8dGl3h2r # fLM36LVsWWtM3HaCePHlHYaYdfy917w4bNWJRf/QfBqSMX5F5mlU+EvzEFLBTkT/ # 4HCaYhE1ouQnudO+rvuK78I72BgXgaPTn2oCXVdBvbEM+36heJyhYRDCW4ncf5QN # PH8UQUih/NrU9BSrLT3aHE3VcYWzik7s8A4Nkg21bHYHhXstO/KKzhUU5//wOUp5 # BV+mwjwTxpnOAFqmgQuvH8rTx/YuXCpdkNdoLd41VX8Qa4DP1AjBWAC6LrJkDq51 # 2PIKqMPjSsBaXd/itBKBFzY7JkDRLFUZQMk78l/JjFuhvhE8OfpBPtCofgYo9/OE # cn9khZ6Oh9zxzZWb9YIdHiu4v1VP0ZtGfB0Zt4WIi2oBm3ql6+cHFkVcssaEIiNQ # h5tI/xLviUIIRMIPpu7W+WSZBHt+w6wjBlu3O5fjoPSoHQsmNg2S9mS9+AQ2/KGJ # 4/78/Pg4XpKVd2MSLMQ6A2LlI1iQd51TV0aTqrzd/DdZYP3TBXdasQPR/WZN4eWw # kYwt0bA5FGs= # =1N9B # -----END PGP SIGNATURE----- # gpg: Signature made Wed 24 Jan 2024 10:40:43 GMT # gpg: using RSA key 27B88847EEE0250118F3EAB92ED9D774FE702DB5 # gpg: issuer "thuth@redhat.com" # gpg: Good signature from "Thomas Huth <th.huth@gmx.de>" [full] # gpg: aka "Thomas Huth <thuth@redhat.com>" [full] # gpg: aka "Thomas Huth <huth@tuxfamily.org>" [full] # gpg: aka "Thomas Huth <th.huth@posteo.de>" [unknown] # Primary key fingerprint: 27B8 8847 EEE0 2501 18F3 EAB9 2ED9 D774 FE70 2DB5 * tag 'pull-request-2024-01-24' of https://gitlab.com/thuth/qemu: util/uri: Remove unused macros ISA_RESERVED() and ISA_GEN_DELIM() util/uri: Remove the uri_string_escape() function util/uri: Remove unused functions uri_resolve() and uri_resolve_relative() util/uri: Remove uri_string_unescape() tests/qtest: Bump timeouts of boot_sector_test()-based tests to 610 seconds tests/unit/test-iov: Fix timeout problem on NetBSD and OpenBSD tests/qtest: Bump timeout of the boot-serial-test to 360 seconds Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
This commit is contained in:
@@ -72,14 +72,10 @@ typedef struct URI {
|
||||
} URI;
|
||||
|
||||
URI *uri_new(void);
|
||||
char *uri_resolve(const char *URI, const char *base);
|
||||
char *uri_resolve_relative(const char *URI, const char *base);
|
||||
URI *uri_parse(const char *str);
|
||||
URI *uri_parse_raw(const char *str, int raw);
|
||||
int uri_parse_into(URI *uri, const char *str);
|
||||
char *uri_to_string(URI *uri);
|
||||
char *uri_string_escape(const char *str, const char *list);
|
||||
char *uri_string_unescape(const char *str, int len, char *target);
|
||||
void uri_free(URI *uri);
|
||||
|
||||
/* Single web service query parameter 'name=value'. */
|
||||
|
||||
@@ -1,16 +1,18 @@
|
||||
slow_qtests = {
|
||||
'aspeed_smc-test': 360,
|
||||
'bios-tables-test' : 540,
|
||||
'bios-tables-test' : 610,
|
||||
'cdrom-test' : 610,
|
||||
'device-introspect-test' : 720,
|
||||
'migration-test' : 480,
|
||||
'npcm7xx_pwm-test': 300,
|
||||
'npcm7xx_watchdog_timer-test': 120,
|
||||
'qom-test' : 900,
|
||||
'test-hmp' : 240,
|
||||
'pxe-test': 600,
|
||||
'pxe-test': 610,
|
||||
'prom-env-test': 360,
|
||||
'boot-serial-test': 240,
|
||||
'boot-serial-test': 360,
|
||||
'qos-test': 120,
|
||||
'vmgenid-test': 610,
|
||||
}
|
||||
|
||||
qtests_generic = [
|
||||
|
||||
+11
-9
@@ -197,15 +197,17 @@ static void test_io(void)
|
||||
s = g_test_rand_int_range(0, j - k + 1);
|
||||
r = iov_send(sv[1], iov, niov, k, s);
|
||||
g_assert(memcmp(iov, siov, sizeof(*iov)*niov) == 0);
|
||||
if (r >= 0) {
|
||||
k += r;
|
||||
usleep(g_test_rand_int_range(0, 30));
|
||||
} else if (errno == EAGAIN) {
|
||||
select(sv[1]+1, NULL, &fds, NULL, NULL);
|
||||
continue;
|
||||
} else {
|
||||
perror("send");
|
||||
exit(1);
|
||||
if (r < 0) {
|
||||
if (errno == EAGAIN) {
|
||||
r = 0;
|
||||
} else {
|
||||
perror("send");
|
||||
exit(1);
|
||||
}
|
||||
}
|
||||
k += r;
|
||||
if (k < j) {
|
||||
select(sv[1] + 1, NULL, &fds, NULL, NULL);
|
||||
}
|
||||
} while(k < j);
|
||||
}
|
||||
|
||||
+11
-858
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user