From 9f10ef5e96d1a9016529b2ed56f2926a8441002d Mon Sep 17 00:00:00 2001 From: fanquake Date: Tue, 11 Aug 2026 16:00:27 +0100 Subject: [PATCH] Squashed 'src/leveldb/' changes from a7f9bdc611..13da2d6758 13da2d6758 Merge bitcoin-core/leveldb-subtree#64: refactor: add [[noreturn]] attribute to BackgroundThread* 8c6628bf14 refactor: add [[noreturn]] attribute to BackgroundThread* 8e89537cef Merge bitcoin-core/leveldb-subtree#62: ci: Add LevelDB test workflow 47abe23ff2 ci: run LevelDB tests in GitHub Actions git-subtree-dir: src/leveldb git-subtree-split: 13da2d6758396bd21bf76ca76f514700f82b2a62 --- .github/workflows/ci.yml | 12 ++++++++++++ benchmarks/db_bench_sqlite3.cc | 1 + util/env_posix.cc | 4 ++-- util/env_windows.cc | 4 ++-- 4 files changed, 17 insertions(+), 4 deletions(-) create mode 100644 .github/workflows/ci.yml diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml new file mode 100644 index 00000000000..1b609fc64e6 --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,12 @@ +name: CI + +on: [push, pull_request] + +jobs: + test: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v6 + - run: cmake -B build -DBUILD_SHARED_LIBS=OFF + - run: cmake --build build -j$(nproc) + - run: ctest --test-dir build --output-on-failure -j$(nproc) diff --git a/benchmarks/db_bench_sqlite3.cc b/benchmarks/db_bench_sqlite3.cc index f183f4fcfdf..45de779322d 100644 --- a/benchmarks/db_bench_sqlite3.cc +++ b/benchmarks/db_bench_sqlite3.cc @@ -5,6 +5,7 @@ #include #include #include +#include #include "util/histogram.h" #include "util/random.h" diff --git a/util/env_posix.cc b/util/env_posix.cc index 00bfd5986db..81af271e975 100644 --- a/util/env_posix.cc +++ b/util/env_posix.cc @@ -730,9 +730,9 @@ class PosixEnv : public Env { } private: - void BackgroundThreadMain(); + [[noreturn]] void BackgroundThreadMain(); - static void BackgroundThreadEntryPoint(PosixEnv* env) { + [[noreturn]] static void BackgroundThreadEntryPoint(PosixEnv* env) { env->BackgroundThreadMain(); } diff --git a/util/env_windows.cc b/util/env_windows.cc index 6ef27e456dd..43f117be126 100644 --- a/util/env_windows.cc +++ b/util/env_windows.cc @@ -675,9 +675,9 @@ class WindowsEnv : public Env { } private: - void BackgroundThreadMain(); + [[noreturn]] void BackgroundThreadMain(); - static void BackgroundThreadEntryPoint(WindowsEnv* env) { + [[noreturn]] static void BackgroundThreadEntryPoint(WindowsEnv* env) { env->BackgroundThreadMain(); }