Skip to content

Commit 91adb2a

Browse files
author
Micah Scott
committed
Revert "bugfix for test_bson_reserve_buffer_errors"
This reverts commit 05bd56a. (Moved to CDRIVER-5915)
1 parent d1b35d0 commit 91adb2a

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

src/libbson/tests/test-bson.c

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1886,11 +1886,7 @@ test_bson_reserve_buffer_errors (void)
18861886
uint32_t len_le;
18871887

18881888
/* too big */
1889-
ASSERT (!bson_reserve_buffer (&bson, (uint32_t) (BSON_MAX_SIZE - bson.len + 1u)));
1890-
/* exactly the maximum size */
1891-
#if BSON_WORD_SIZE > 32
1892-
ASSERT (bson_reserve_buffer (&bson, (uint32_t) (BSON_MAX_SIZE - bson.len)));
1893-
#endif
1889+
ASSERT (!bson_reserve_buffer (&bson, (uint32_t) (INT32_MAX - bson.len - 1)));
18941890

18951891
/* make a static bson, it refuses bson_reserve_buffer since it's read-only */
18961892
bson_destroy (&bson);

0 commit comments

Comments
 (0)