Skip to content

Commit

Permalink
Debug prints for CI
Browse files Browse the repository at this point in the history
  • Loading branch information
toonn committed Nov 9, 2021
1 parent abb186a commit f39176c
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
3 changes: 3 additions & 0 deletions test/unit/test_c_api.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@
#include <sqlite3.h>

#if !defined(_WIN32)
#include <unistd.h>
#include <sys/resource.h>
#endif

Expand Down Expand Up @@ -6114,8 +6115,10 @@ TEST_F(CApi, open_plenty_of_contexts) {
struct rlimit open_max_limits;
getrlimit(RLIMIT_NOFILE, &open_max_limits);
const rlim_t open_file_max = open_max_limits.rlim_cur;
printf("RLIM %ju, sysconf %ju\n", (uintmax_t)open_file_max, (uintmax_t)sysconf(_SC_OPEN_MAX));
for (rlim_t i = 0; i < open_file_max - 50; i++) {
FILE *f = fopen("/dev/null", "rb");
printf("%ju, ", (uintmax_t)i);
ASSERT_TRUE(f != nullptr);
dummyFilePointers.push_back(f);
}
Expand Down
3 changes: 3 additions & 0 deletions travis/linux_generic/install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -7,3 +7,6 @@ export PROJ_DB_CACHE_DIR="$HOME/.ccache"

# -fno-use-cxa-atexit is needed to build with -coverage
CC="ccache $CC" CXX="ccache $CXX" CFLAGS="-Werror" CXXFLAGS="-Werror" ./travis/install.sh

printf "ULIMITS:\n"
ulimit -a

0 comments on commit f39176c

Please sign in to comment.