Skip to content

Commit

Permalink
[libc] Fix missing include for pthread tests
Browse files Browse the repository at this point in the history
  • Loading branch information
gchatelet committed Apr 2, 2023
1 parent 80f3be9 commit d9c135c
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 0 deletions.
1 change: 1 addition & 0 deletions libc/test/integration/src/pthread/pthread_equal_test.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
#include "test/IntegrationTest/test.h"

#include <pthread.h>
#include <stdint.h> // uintptr_t

pthread_t child_thread;
pthread_mutex_t mutex;
Expand Down
1 change: 1 addition & 0 deletions libc/test/integration/src/pthread/pthread_mutex_test.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
#include "test/IntegrationTest/test.h"

#include <pthread.h>
#include <stdint.h> // uintptr_t

constexpr int START = 0;
constexpr int MAX = 10000;
Expand Down
1 change: 1 addition & 0 deletions libc/test/integration/src/pthread/pthread_name_test.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@

#include <errno.h>
#include <pthread.h>
#include <stdint.h> // uintptr_t

using string_view = __llvm_libc::cpp::string_view;

Expand Down
1 change: 1 addition & 0 deletions libc/test/integration/src/pthread/pthread_once_test.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
#include "test/IntegrationTest/test.h"

#include <pthread.h>
#include <stdint.h> // uintptr_t

static constexpr unsigned int NUM_THREADS = 5;
static __llvm_libc::cpp::Atomic<unsigned int> thread_count;
Expand Down
1 change: 1 addition & 0 deletions libc/test/integration/src/pthread/pthread_test.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
#include "test/IntegrationTest/test.h"

#include <pthread.h>
#include <stdint.h> // uintptr_t

static constexpr int thread_count = 1000;
static int counter = 0;
Expand Down

0 comments on commit d9c135c

Please sign in to comment.