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
This commit is contained in:
fanquake
2026-08-11 16:00:27 +01:00
parent 58cdb5c2e8
commit 9f10ef5e96
4 changed files with 17 additions and 4 deletions

12
.github/workflows/ci.yml vendored Normal file
View File

@@ -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)

View File

@@ -5,6 +5,7 @@
#include <sqlite3.h>
#include <stdio.h>
#include <stdlib.h>
#include <time.h>
#include "util/histogram.h"
#include "util/random.h"

View File

@@ -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();
}

View File

@@ -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();
}