Skip to content

Commit

Permalink
By quater
Browse files Browse the repository at this point in the history
    * ACE/tests/New_Fail_Test.cpp:
  • Loading branch information
jwillemsen committed Apr 29, 2024
1 parent ac3dc09 commit 83157bc
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions ACE/tests/New_Fail_Test.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -31,12 +31,12 @@
// wrong. The allocated memory is always freed to avoid masking a leak
// somewhere else in the test.

// Most we can do, by half. Using max alone gets "invalid allocation size"
// Most we can do, by quarter. Using max alone gets "invalid allocation size"
// messages on stdout on Windows.
static const size_t BIG_BLOCK = std::numeric_limits<size_t>::max () / 2;
constexpr size_t BIG_BLOCK = std::numeric_limits<size_t>::max () / 4;

// Shouldn't take many "as much as possible" tries to get a failure.
static const int MAX_ALLOCS_IN_TEST = 2;
constexpr int MAX_ALLOCS_IN_TEST = 2;

static void
try_ace_new (char **p)
Expand Down

0 comments on commit 83157bc

Please sign in to comment.