Changeset 1c6c3e1d in mainline for uspace/lib/wndmgt/test/wndmgt.c
- Timestamp:
- 2023-10-22T17:55:33Z (14 months ago)
- Branches:
- ticket/834-toolchain-update
- Children:
- 350ec74
- Parents:
- 315d487 (diff), 133461c (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the(diff)
links above to see all the changes relative to each parent. - File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/wndmgt/test/wndmgt.c
r315d487 r1c6c3e1d 117 117 wndmgt_t *wndmgt = NULL; 118 118 test_response_t resp; 119 120 async_set_fallback_port_handler(test_wndmgt_conn, &resp); 121 122 // FIXME This causes this test to be non-reentrant! 123 rc = loc_server_register(test_wndmgt_server); 124 PCUT_ASSERT_ERRNO_VAL(EOK, rc); 125 126 rc = loc_service_register(test_wndmgt_svc, &sid); 127 PCUT_ASSERT_ERRNO_VAL(EOK, rc); 128 129 rc = wndmgt_open(test_wndmgt_svc, NULL, NULL, &wndmgt); 130 PCUT_ASSERT_ERRNO_VAL(EOK, rc); 131 PCUT_ASSERT_NOT_NULL(wndmgt); 132 133 wndmgt_close(wndmgt); 134 rc = loc_service_unregister(sid); 135 PCUT_ASSERT_ERRNO_VAL(EOK, rc); 119 loc_srv_t *srv; 120 121 async_set_fallback_port_handler(test_wndmgt_conn, &resp); 122 123 // FIXME This causes this test to be non-reentrant! 124 rc = loc_server_register(test_wndmgt_server, &srv); 125 PCUT_ASSERT_ERRNO_VAL(EOK, rc); 126 127 rc = loc_service_register(srv, test_wndmgt_svc, &sid); 128 PCUT_ASSERT_ERRNO_VAL(EOK, rc); 129 130 rc = wndmgt_open(test_wndmgt_svc, NULL, NULL, &wndmgt); 131 PCUT_ASSERT_ERRNO_VAL(EOK, rc); 132 PCUT_ASSERT_NOT_NULL(wndmgt); 133 134 wndmgt_close(wndmgt); 135 rc = loc_service_unregister(srv, sid); 136 PCUT_ASSERT_ERRNO_VAL(EOK, rc); 137 loc_server_unregister(srv); 136 138 } 137 139 … … 144 146 wndmgt_window_list_t *list; 145 147 test_response_t resp; 146 147 async_set_fallback_port_handler(test_wndmgt_conn, &resp); 148 149 // FIXME This causes this test to be non-reentrant! 150 rc = loc_server_register(test_wndmgt_server); 151 PCUT_ASSERT_ERRNO_VAL(EOK, rc); 152 153 rc = loc_service_register(test_wndmgt_svc, &sid); 148 loc_srv_t *srv; 149 150 async_set_fallback_port_handler(test_wndmgt_conn, &resp); 151 152 // FIXME This causes this test to be non-reentrant! 153 rc = loc_server_register(test_wndmgt_server, &srv); 154 PCUT_ASSERT_ERRNO_VAL(EOK, rc); 155 156 rc = loc_service_register(srv, test_wndmgt_svc, &sid); 154 157 PCUT_ASSERT_ERRNO_VAL(EOK, rc); 155 158 … … 166 169 167 170 wndmgt_close(wndmgt); 168 rc = loc_service_unregister(sid); 169 PCUT_ASSERT_ERRNO_VAL(EOK, rc); 171 rc = loc_service_unregister(srv, sid); 172 PCUT_ASSERT_ERRNO_VAL(EOK, rc); 173 loc_server_unregister(srv); 170 174 } 171 175 … … 178 182 wndmgt_window_list_t *list; 179 183 test_response_t resp; 180 181 async_set_fallback_port_handler(test_wndmgt_conn, &resp); 182 183 // FIXME This causes this test to be non-reentrant! 184 rc = loc_server_register(test_wndmgt_server); 185 PCUT_ASSERT_ERRNO_VAL(EOK, rc); 186 187 rc = loc_service_register(test_wndmgt_svc, &sid); 184 loc_srv_t *srv; 185 186 async_set_fallback_port_handler(test_wndmgt_conn, &resp); 187 188 // FIXME This causes this test to be non-reentrant! 189 rc = loc_server_register(test_wndmgt_server, &srv); 190 PCUT_ASSERT_ERRNO_VAL(EOK, rc); 191 192 rc = loc_service_register(srv, test_wndmgt_svc, &sid); 188 193 PCUT_ASSERT_ERRNO_VAL(EOK, rc); 189 194 … … 212 217 wndmgt_free_window_list(list); 213 218 wndmgt_close(wndmgt); 214 rc = loc_service_unregister(sid); 215 PCUT_ASSERT_ERRNO_VAL(EOK, rc); 219 rc = loc_service_unregister(srv, sid); 220 PCUT_ASSERT_ERRNO_VAL(EOK, rc); 221 loc_server_unregister(srv); 216 222 } 217 223 … … 225 231 wndmgt_window_info_t *info; 226 232 test_response_t resp; 227 228 async_set_fallback_port_handler(test_wndmgt_conn, &resp); 229 230 // FIXME This causes this test to be non-reentrant! 231 rc = loc_server_register(test_wndmgt_server); 232 PCUT_ASSERT_ERRNO_VAL(EOK, rc); 233 234 rc = loc_service_register(test_wndmgt_svc, &sid); 233 loc_srv_t *srv; 234 235 async_set_fallback_port_handler(test_wndmgt_conn, &resp); 236 237 // FIXME This causes this test to be non-reentrant! 238 rc = loc_server_register(test_wndmgt_server, &srv); 239 PCUT_ASSERT_ERRNO_VAL(EOK, rc); 240 241 rc = loc_service_register(srv, test_wndmgt_svc, &sid); 235 242 PCUT_ASSERT_ERRNO_VAL(EOK, rc); 236 243 … … 249 256 250 257 wndmgt_close(wndmgt); 251 rc = loc_service_unregister(sid); 252 PCUT_ASSERT_ERRNO_VAL(EOK, rc); 258 rc = loc_service_unregister(srv, sid); 259 PCUT_ASSERT_ERRNO_VAL(EOK, rc); 260 loc_server_unregister(srv); 253 261 } 254 262 … … 262 270 wndmgt_window_info_t *info; 263 271 test_response_t resp; 264 265 async_set_fallback_port_handler(test_wndmgt_conn, &resp); 266 267 // FIXME This causes this test to be non-reentrant! 268 rc = loc_server_register(test_wndmgt_server); 269 PCUT_ASSERT_ERRNO_VAL(EOK, rc); 270 271 rc = loc_service_register(test_wndmgt_svc, &sid); 272 loc_srv_t *srv; 273 274 async_set_fallback_port_handler(test_wndmgt_conn, &resp); 275 276 // FIXME This causes this test to be non-reentrant! 277 rc = loc_server_register(test_wndmgt_server, &srv); 278 PCUT_ASSERT_ERRNO_VAL(EOK, rc); 279 280 rc = loc_service_register(srv, test_wndmgt_svc, &sid); 272 281 PCUT_ASSERT_ERRNO_VAL(EOK, rc); 273 282 … … 297 306 wndmgt_free_window_info(info); 298 307 wndmgt_close(wndmgt); 299 rc = loc_service_unregister(sid); 300 PCUT_ASSERT_ERRNO_VAL(EOK, rc); 308 rc = loc_service_unregister(srv, sid); 309 PCUT_ASSERT_ERRNO_VAL(EOK, rc); 310 loc_server_unregister(srv); 301 311 } 302 312 … … 310 320 sysarg_t wnd_id; 311 321 test_response_t resp; 312 313 async_set_fallback_port_handler(test_wndmgt_conn, &resp); 314 315 // FIXME This causes this test to be non-reentrant! 316 rc = loc_server_register(test_wndmgt_server); 317 PCUT_ASSERT_ERRNO_VAL(EOK, rc); 318 319 rc = loc_service_register(test_wndmgt_svc, &sid); 322 loc_srv_t *srv; 323 324 async_set_fallback_port_handler(test_wndmgt_conn, &resp); 325 326 // FIXME This causes this test to be non-reentrant! 327 rc = loc_server_register(test_wndmgt_server, &srv); 328 PCUT_ASSERT_ERRNO_VAL(EOK, rc); 329 330 rc = loc_service_register(srv, test_wndmgt_svc, &sid); 320 331 PCUT_ASSERT_ERRNO_VAL(EOK, rc); 321 332 … … 336 347 337 348 wndmgt_close(wndmgt); 338 rc = loc_service_unregister(sid); 339 PCUT_ASSERT_ERRNO_VAL(EOK, rc); 349 rc = loc_service_unregister(srv, sid); 350 PCUT_ASSERT_ERRNO_VAL(EOK, rc); 351 loc_server_unregister(srv); 340 352 } 341 353 … … 349 361 sysarg_t wnd_id; 350 362 test_response_t resp; 351 352 async_set_fallback_port_handler(test_wndmgt_conn, &resp); 353 354 // FIXME This causes this test to be non-reentrant! 355 rc = loc_server_register(test_wndmgt_server); 356 PCUT_ASSERT_ERRNO_VAL(EOK, rc); 357 358 rc = loc_service_register(test_wndmgt_svc, &sid); 363 loc_srv_t *srv; 364 365 async_set_fallback_port_handler(test_wndmgt_conn, &resp); 366 367 // FIXME This causes this test to be non-reentrant! 368 rc = loc_server_register(test_wndmgt_server, &srv); 369 PCUT_ASSERT_ERRNO_VAL(EOK, rc); 370 371 rc = loc_service_register(srv, test_wndmgt_svc, &sid); 359 372 PCUT_ASSERT_ERRNO_VAL(EOK, rc); 360 373 … … 375 388 376 389 wndmgt_close(wndmgt); 377 rc = loc_service_unregister(sid); 378 PCUT_ASSERT_ERRNO_VAL(EOK, rc); 390 rc = loc_service_unregister(srv, sid); 391 PCUT_ASSERT_ERRNO_VAL(EOK, rc); 392 loc_server_unregister(srv); 379 393 } 380 394 … … 387 401 sysarg_t wnd_id; 388 402 test_response_t resp; 389 390 async_set_fallback_port_handler(test_wndmgt_conn, &resp); 391 392 // FIXME This causes this test to be non-reentrant! 393 rc = loc_server_register(test_wndmgt_server); 394 PCUT_ASSERT_ERRNO_VAL(EOK, rc); 395 396 rc = loc_service_register(test_wndmgt_svc, &sid); 403 loc_srv_t *srv; 404 405 async_set_fallback_port_handler(test_wndmgt_conn, &resp); 406 407 // FIXME This causes this test to be non-reentrant! 408 rc = loc_server_register(test_wndmgt_server, &srv); 409 PCUT_ASSERT_ERRNO_VAL(EOK, rc); 410 411 rc = loc_service_register(srv, test_wndmgt_svc, &sid); 397 412 PCUT_ASSERT_ERRNO_VAL(EOK, rc); 398 413 … … 411 426 412 427 wndmgt_close(wndmgt); 413 rc = loc_service_unregister(sid); 414 PCUT_ASSERT_ERRNO_VAL(EOK, rc); 428 rc = loc_service_unregister(srv, sid); 429 PCUT_ASSERT_ERRNO_VAL(EOK, rc); 430 loc_server_unregister(srv); 415 431 } 416 432 … … 423 439 sysarg_t wnd_id; 424 440 test_response_t resp; 425 426 async_set_fallback_port_handler(test_wndmgt_conn, &resp); 427 428 // FIXME This causes this test to be non-reentrant! 429 rc = loc_server_register(test_wndmgt_server); 430 PCUT_ASSERT_ERRNO_VAL(EOK, rc); 431 432 rc = loc_service_register(test_wndmgt_svc, &sid); 441 loc_srv_t *srv; 442 443 async_set_fallback_port_handler(test_wndmgt_conn, &resp); 444 445 // FIXME This causes this test to be non-reentrant! 446 rc = loc_server_register(test_wndmgt_server, &srv); 447 PCUT_ASSERT_ERRNO_VAL(EOK, rc); 448 449 rc = loc_service_register(srv, test_wndmgt_svc, &sid); 433 450 PCUT_ASSERT_ERRNO_VAL(EOK, rc); 434 451 … … 447 464 448 465 wndmgt_close(wndmgt); 449 rc = loc_service_unregister(sid); 450 PCUT_ASSERT_ERRNO_VAL(EOK, rc); 466 rc = loc_service_unregister(srv, sid); 467 PCUT_ASSERT_ERRNO_VAL(EOK, rc); 468 loc_server_unregister(srv); 451 469 } 452 470 … … 458 476 wndmgt_t *wndmgt = NULL; 459 477 test_response_t resp; 460 461 async_set_fallback_port_handler(test_wndmgt_conn, &resp); 462 463 // FIXME This causes this test to be non-reentrant! 464 rc = loc_server_register(test_wndmgt_server); 465 PCUT_ASSERT_ERRNO_VAL(EOK, rc); 466 467 rc = loc_service_register(test_wndmgt_svc, &sid); 478 loc_srv_t *srv; 479 480 async_set_fallback_port_handler(test_wndmgt_conn, &resp); 481 482 // FIXME This causes this test to be non-reentrant! 483 rc = loc_server_register(test_wndmgt_server, &srv); 484 PCUT_ASSERT_ERRNO_VAL(EOK, rc); 485 486 rc = loc_service_register(srv, test_wndmgt_svc, &sid); 468 487 PCUT_ASSERT_ERRNO_VAL(EOK, rc); 469 488 … … 494 513 wndmgt_close(wndmgt); 495 514 496 rc = loc_service_unregister(sid); 497 PCUT_ASSERT_ERRNO_VAL(EOK, rc); 515 rc = loc_service_unregister(srv, sid); 516 PCUT_ASSERT_ERRNO_VAL(EOK, rc); 517 loc_server_unregister(srv); 498 518 } 499 519 … … 505 525 wndmgt_t *wndmgt = NULL; 506 526 test_response_t resp; 507 508 async_set_fallback_port_handler(test_wndmgt_conn, &resp); 509 510 // FIXME This causes this test to be non-reentrant! 511 rc = loc_server_register(test_wndmgt_server); 512 PCUT_ASSERT_ERRNO_VAL(EOK, rc); 513 514 rc = loc_service_register(test_wndmgt_svc, &sid); 527 loc_srv_t *srv; 528 529 async_set_fallback_port_handler(test_wndmgt_conn, &resp); 530 531 // FIXME This causes this test to be non-reentrant! 532 rc = loc_server_register(test_wndmgt_server, &srv); 533 PCUT_ASSERT_ERRNO_VAL(EOK, rc); 534 535 rc = loc_service_register(srv, test_wndmgt_svc, &sid); 515 536 PCUT_ASSERT_ERRNO_VAL(EOK, rc); 516 537 … … 541 562 wndmgt_close(wndmgt); 542 563 543 rc = loc_service_unregister(sid); 544 PCUT_ASSERT_ERRNO_VAL(EOK, rc); 564 rc = loc_service_unregister(srv, sid); 565 PCUT_ASSERT_ERRNO_VAL(EOK, rc); 566 loc_server_unregister(srv); 545 567 } 546 568 … … 552 574 wndmgt_t *wndmgt = NULL; 553 575 test_response_t resp; 554 555 async_set_fallback_port_handler(test_wndmgt_conn, &resp); 556 557 // FIXME This causes this test to be non-reentrant! 558 rc = loc_server_register(test_wndmgt_server); 559 PCUT_ASSERT_ERRNO_VAL(EOK, rc); 560 561 rc = loc_service_register(test_wndmgt_svc, &sid); 576 loc_srv_t *srv; 577 578 async_set_fallback_port_handler(test_wndmgt_conn, &resp); 579 580 // FIXME This causes this test to be non-reentrant! 581 rc = loc_server_register(test_wndmgt_server, &srv); 582 PCUT_ASSERT_ERRNO_VAL(EOK, rc); 583 584 rc = loc_service_register(srv, test_wndmgt_svc, &sid); 562 585 PCUT_ASSERT_ERRNO_VAL(EOK, rc); 563 586 … … 588 611 wndmgt_close(wndmgt); 589 612 590 rc = loc_service_unregister(sid); 591 PCUT_ASSERT_ERRNO_VAL(EOK, rc); 613 rc = loc_service_unregister(srv, sid); 614 PCUT_ASSERT_ERRNO_VAL(EOK, rc); 615 loc_server_unregister(srv); 592 616 } 593 617
Note:
See TracChangeset
for help on using the changeset viewer.