Skip to content

Commit 6b8abb4

Browse files
xhochywesm
authored andcommitted
ARROW-289: Install test-util.h
Author: Uwe L. Korn <[email protected]> Closes #135 from xhochy/arrow-289 and squashes the following commits: 5e4aadf [Uwe L. Korn] ARROW-289: Install test-util.h
1 parent 077c72b commit 6b8abb4

File tree

4 files changed

+11
-7
lines changed

4 files changed

+11
-7
lines changed

cpp/src/arrow/CMakeLists.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ install(FILES
2424
schema.h
2525
table.h
2626
type.h
27+
test-util.h
2728
DESTINATION include/arrow)
2829

2930
#######################################

cpp/src/arrow/test-util.h

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -40,22 +40,22 @@
4040

4141
#define ASSERT_RAISES(ENUM, expr) \
4242
do { \
43-
Status s = (expr); \
43+
::arrow::Status s = (expr); \
4444
if (!s.Is##ENUM()) { FAIL() << s.ToString(); } \
4545
} while (0)
4646

4747
#define ASSERT_OK(expr) \
4848
do { \
49-
Status s = (expr); \
49+
::arrow::Status s = (expr); \
5050
if (!s.ok()) { FAIL() << s.ToString(); } \
5151
} while (0)
5252

5353
#define ASSERT_OK_NO_THROW(expr) ASSERT_NO_THROW(ASSERT_OK(expr))
5454

55-
#define EXPECT_OK(expr) \
56-
do { \
57-
Status s = (expr); \
58-
EXPECT_TRUE(s.ok()); \
55+
#define EXPECT_OK(expr) \
56+
do { \
57+
::arrow::Status s = (expr); \
58+
EXPECT_TRUE(s.ok()); \
5959
} while (0)
6060

6161
namespace arrow {

cpp/src/arrow/util/CMakeLists.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ install(FILES
2626
logging.h
2727
macros.h
2828
memory-pool.h
29+
random.h
2930
status.h
3031
visibility.h
3132
DESTINATION include/arrow/util)

cpp/src/arrow/util/bit-util.h

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,8 @@
2222
#include <memory>
2323
#include <vector>
2424

25+
#include "arrow/util/visibility.h"
26+
2527
namespace arrow {
2628

2729
class Buffer;
@@ -76,7 +78,7 @@ static inline bool is_multiple_of_64(int64_t n) {
7678
}
7779

7880
void bytes_to_bits(const std::vector<uint8_t>& bytes, uint8_t* bits);
79-
Status bytes_to_bits(const std::vector<uint8_t>&, std::shared_ptr<Buffer>*);
81+
ARROW_EXPORT Status bytes_to_bits(const std::vector<uint8_t>&, std::shared_ptr<Buffer>*);
8082

8183
} // namespace util
8284

0 commit comments

Comments
 (0)