Skip to content

Commit

Permalink
more travis workarounds
Browse files Browse the repository at this point in the history
  • Loading branch information
pauldreik committed Jun 9, 2019
1 parent c6eed3a commit 9264e3a
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
5 changes: 4 additions & 1 deletion test/fuzzing/chrono_duration.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,10 @@ void invoke_outer(const uint8_t* Data, std::size_t Size, const int scaling) {
// always use a fixed location of the data, so different cases will
// cooperate better. the same bit pattern, interpreted as another type,
// is likely interesting.
constexpr auto Nfixed = std::max(sizeof(long double), sizeof(std::intmax_t));
// won't work on travis.
//constexpr auto Nfixed = std::max(sizeof(long double), sizeof(std::intmax_t));
constexpr auto Nfixed=16;

constexpr auto N = sizeof(Item);
static_assert(N <= Nfixed, "fixed size is too small");
if (Size <= Nfixed + 1) {
Expand Down
4 changes: 3 additions & 1 deletion test/fuzzing/two_args.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,9 @@
#include <stdexcept>
#include <type_traits>

constexpr auto Nmax = std::max(sizeof(long double), sizeof(std::intmax_t));
// won't work on travis.
//constexpr auto Nmax = std::max(sizeof(long double), sizeof(std::intmax_t));
constexpr auto Nmax=16;

template <typename Item1, typename Item2>
void invoke_fmt(const uint8_t* Data, std::size_t Size) {
Expand Down

0 comments on commit 9264e3a

Please sign in to comment.