Skip to content

test1565: fix windows build errors#7527

Closed
jay wants to merge 1 commit intocurl:masterfrom
jay:fix_test1565_for_mingw
Closed

test1565: fix windows build errors#7527
jay wants to merge 1 commit intocurl:masterfrom
jay:fix_test1565_for_mingw

Conversation

@jay
Copy link
Member

@jay jay commented Aug 2, 2021

  • Define a macro sleep(sec) to call Sleep(sec * 1000).

  • Use a separate variable to keep track of whether the pthread_t thread
    id is valid.

On Windows pthread_t is not an integer type. pthread offers no macro for
invalid pthread_t thread id, so validity is kept track of separately.

Closes #xxxx

- Define a macro sleep(sec) to call Sleep(sec * 1000).

- Use a separate variable to keep track of whether the pthread_t thread
  id is valid.

On Windows pthread_t is not an integer type. pthread offers no macro for
invalid pthread_t thread id, so validity is kept track of separately.

Closes #xxxx
@jay jay added tests Windows Windows-specific labels Aug 2, 2021
@mback2k
Copy link
Member

mback2k commented Aug 3, 2021

Maybe use wait_ms instead of Sleep?

@jay jay closed this in 26f93cf Aug 10, 2021
@jay jay deleted the fix_test1565_for_mingw branch August 10, 2021 07:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

tests Windows Windows-specific

Development

Successfully merging this pull request may close these issues.

2 participants