Skip to content

Commit 5bab95d

Browse files
committed
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 "[email protected]" # gpg: Good signature from "Thomas Huth <[email protected]>" [full] # gpg: aka "Thomas Huth <[email protected]>" [full] # gpg: aka "Thomas Huth <[email protected]>" [full] # gpg: aka "Thomas Huth <[email protected]>" [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 <[email protected]>
2 parents b3a5dd0 + e7b9914 commit 5bab95d

File tree

4 files changed

+27
-874
lines changed

4 files changed

+27
-874
lines changed

include/qemu/uri.h

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -72,14 +72,10 @@ typedef struct URI {
7272
} URI;
7373

7474
URI *uri_new(void);
75-
char *uri_resolve(const char *URI, const char *base);
76-
char *uri_resolve_relative(const char *URI, const char *base);
7775
URI *uri_parse(const char *str);
7876
URI *uri_parse_raw(const char *str, int raw);
7977
int uri_parse_into(URI *uri, const char *str);
8078
char *uri_to_string(URI *uri);
81-
char *uri_string_escape(const char *str, const char *list);
82-
char *uri_string_unescape(const char *str, int len, char *target);
8379
void uri_free(URI *uri);
8480

8581
/* Single web service query parameter 'name=value'. */

tests/qtest/meson.build

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,18 @@
11
slow_qtests = {
22
'aspeed_smc-test': 360,
3-
'bios-tables-test' : 540,
3+
'bios-tables-test' : 610,
4+
'cdrom-test' : 610,
45
'device-introspect-test' : 720,
56
'migration-test' : 480,
67
'npcm7xx_pwm-test': 300,
78
'npcm7xx_watchdog_timer-test': 120,
89
'qom-test' : 900,
910
'test-hmp' : 240,
10-
'pxe-test': 600,
11+
'pxe-test': 610,
1112
'prom-env-test': 360,
12-
'boot-serial-test': 240,
13+
'boot-serial-test': 360,
1314
'qos-test': 120,
15+
'vmgenid-test': 610,
1416
}
1517

1618
qtests_generic = [

tests/unit/test-iov.c

Lines changed: 11 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -197,15 +197,17 @@ static void test_io(void)
197197
s = g_test_rand_int_range(0, j - k + 1);
198198
r = iov_send(sv[1], iov, niov, k, s);
199199
g_assert(memcmp(iov, siov, sizeof(*iov)*niov) == 0);
200-
if (r >= 0) {
201-
k += r;
202-
usleep(g_test_rand_int_range(0, 30));
203-
} else if (errno == EAGAIN) {
204-
select(sv[1]+1, NULL, &fds, NULL, NULL);
205-
continue;
206-
} else {
207-
perror("send");
208-
exit(1);
200+
if (r < 0) {
201+
if (errno == EAGAIN) {
202+
r = 0;
203+
} else {
204+
perror("send");
205+
exit(1);
206+
}
207+
}
208+
k += r;
209+
if (k < j) {
210+
select(sv[1] + 1, NULL, &fds, NULL, NULL);
209211
}
210212
} while(k < j);
211213
}

0 commit comments

Comments
 (0)