1
0
mirror of https://github.com/pgbackrest/pgbackrest.git synced 2025-07-17 01:12:23 +02:00

Add missing static keywords in test modules.

This commit is contained in:
David Steele
2021-10-18 12:22:48 -04:00
parent 4570c7e275
commit 90f7f11a9f
77 changed files with 96 additions and 96 deletions

View File

@ -5,7 +5,7 @@ Test Build Common
/***********************************************************************************************************************************
Test Run
***********************************************************************************************************************************/
void
static void
testRun(void)
{
FUNCTION_HARNESS_VOID();

View File

@ -6,7 +6,7 @@ Test Build Config
/***********************************************************************************************************************************
Test Run
***********************************************************************************************************************************/
void
static void
testRun(void)
{
FUNCTION_HARNESS_VOID();

View File

@ -6,7 +6,7 @@ Test Build Error
/***********************************************************************************************************************************
Test Run
***********************************************************************************************************************************/
void
static void
testRun(void)
{
FUNCTION_HARNESS_VOID();

View File

@ -9,7 +9,7 @@ Test Build Help
/***********************************************************************************************************************************
Test Run
***********************************************************************************************************************************/
void
static void
testRun(void)
{
FUNCTION_HARNESS_VOID();

View File

@ -13,7 +13,7 @@ Test Archive Common
/***********************************************************************************************************************************
Test Run
***********************************************************************************************************************************/
void
static void
testRun(void)
{
FUNCTION_HARNESS_VOID();

View File

@ -14,7 +14,7 @@ Test Archive Get Command
/***********************************************************************************************************************************
Test Run
***********************************************************************************************************************************/
void
static void
testRun(void)
{
FUNCTION_HARNESS_VOID();

View File

@ -16,7 +16,7 @@ Test Archive Push Command
/***********************************************************************************************************************************
Test Run
***********************************************************************************************************************************/
void
static void
testRun(void)
{
FUNCTION_HARNESS_VOID();

View File

@ -13,7 +13,7 @@ Test Common Functions and Definitions for Backup and Expire Commands
/***********************************************************************************************************************************
Test Run
***********************************************************************************************************************************/
void
static void
testRun(void)
{
FUNCTION_HARNESS_VOID();

View File

@ -28,7 +28,7 @@ typedef struct TestBackupValidateCallbackData
String *content; // String where content should be added
} TestBackupValidateCallbackData;
void
static void
testBackupValidateCallback(void *callbackData, const StorageInfo *info)
{
TestBackupValidateCallbackData *data = callbackData;
@ -438,7 +438,7 @@ testBackupPqScript(unsigned int pgVersion, time_t backupTimeStart, TestBackupPqS
/***********************************************************************************************************************************
Test Run
***********************************************************************************************************************************/
void
static void
testRun(void)
{
FUNCTION_HARNESS_VOID();

View File

@ -15,7 +15,7 @@ Test Check Command
/***********************************************************************************************************************************
Test Run
***********************************************************************************************************************************/
void
static void
testRun(void)
{
FUNCTION_HARNESS_VOID();

View File

@ -12,7 +12,7 @@ Test Common Command Routines
/***********************************************************************************************************************************
Test Run
***********************************************************************************************************************************/
void
static void
testRun(void)
{
FUNCTION_HARNESS_VOID();

View File

@ -11,7 +11,7 @@ Test Command Control
/***********************************************************************************************************************************
Test Run
***********************************************************************************************************************************/
void
static void
testRun(void)
{
FUNCTION_HARNESS_VOID();

View File

@ -14,7 +14,7 @@ Test Expire Command
/***********************************************************************************************************************************
Helper functions
***********************************************************************************************************************************/
void
static void
archiveGenerate(
const Storage *storage, const char *const archiveStanzaPath, const unsigned int start, unsigned int end, const char *archiveId,
const char *majorWal)
@ -38,7 +38,7 @@ archiveGenerate(
}
}
const char *
static const char *
archiveExpectList(const unsigned int start, unsigned int end, const char *majorWal)
{
String *result = strNew();
@ -65,7 +65,7 @@ archiveExpectList(const unsigned int start, unsigned int end, const char *majorW
/***********************************************************************************************************************************
Test Run
***********************************************************************************************************************************/
void
static void
testRun(void)
{
FUNCTION_HARNESS_VOID();

View File

@ -32,7 +32,7 @@ testCfgLoad(const StringList *const argList)
/***********************************************************************************************************************************
Test Run
***********************************************************************************************************************************/
void
static void
testRun(void)
{
FUNCTION_HARNESS_VOID();

View File

@ -13,7 +13,7 @@ Test Info Command
/***********************************************************************************************************************************
Test Run
***********************************************************************************************************************************/
void
static void
testRun(void)
{
FUNCTION_HARNESS_VOID();

View File

@ -12,7 +12,7 @@ Test Local Command
/***********************************************************************************************************************************
Test Run
***********************************************************************************************************************************/
void
static void
testRun(void)
{
FUNCTION_HARNESS_VOID();

View File

@ -14,7 +14,7 @@ Test Remote Command
/***********************************************************************************************************************************
Test Run
***********************************************************************************************************************************/
void
static void
testRun(void)
{
FUNCTION_HARNESS_VOID();

View File

@ -14,7 +14,7 @@ Test Repo Commands
/***********************************************************************************************************************************
Test Run
***********************************************************************************************************************************/
void
static void
testRun(void)
{
FUNCTION_HARNESS_VOID();

View File

@ -141,7 +141,7 @@ testManifestMinimal(const String *label, unsigned int pgVersion, const String *p
/***********************************************************************************************************************************
Test Run
***********************************************************************************************************************************/
void
static void
testRun(void)
{
FUNCTION_HARNESS_VOID();

View File

@ -13,7 +13,7 @@ Test Stanza Commands
/***********************************************************************************************************************************
Test Run
***********************************************************************************************************************************/
void
static void
testRun(void)
{
FUNCTION_HARNESS_VOID();

View File

@ -16,7 +16,7 @@ Test Stanza Commands
/***********************************************************************************************************************************
Test Run
***********************************************************************************************************************************/
void
static void
testRun(void)
{
FUNCTION_HARNESS_VOID();

View File

@ -5,7 +5,7 @@ Test Assert Macros and Routines when Disabled
/***********************************************************************************************************************************
Test Run
***********************************************************************************************************************************/
void
static void
testRun(void)
{
FUNCTION_HARNESS_VOID();

View File

@ -5,7 +5,7 @@ Test Assert Macros and Routines
/***********************************************************************************************************************************
Test Run
***********************************************************************************************************************************/
void
static void
testRun(void)
{
FUNCTION_HARNESS_VOID();

View File

@ -171,7 +171,7 @@ testSuite(CompressType type, const char *decompressCmd)
/***********************************************************************************************************************************
Test Run
***********************************************************************************************************************************/
void
static void
testRun(void)
{
FUNCTION_HARNESS_VOID();

View File

@ -16,7 +16,7 @@ Data for testing
/***********************************************************************************************************************************
Test Run
***********************************************************************************************************************************/
void
static void
testRun(void)
{
FUNCTION_HARNESS_VOID();

View File

@ -6,7 +6,7 @@ Test Debug Macros and Routines when Disabled
/***********************************************************************************************************************************
Test Run
***********************************************************************************************************************************/
void
static void
testRun(void)
{
FUNCTION_HARNESS_VOID();

View File

@ -45,7 +45,7 @@ testFunction1(
/***********************************************************************************************************************************
Test Run
***********************************************************************************************************************************/
void
static void
testRun(void)
{
FUNCTION_HARNESS_VOID();

View File

@ -5,7 +5,7 @@ Test Binary to String Encode/Decode
/***********************************************************************************************************************************
Test Run
***********************************************************************************************************************************/
void
static void
testRun(void)
{
FUNCTION_HARNESS_VOID();

View File

@ -19,11 +19,11 @@ ERROR_DEFINE(200, TestChildError, TestParent2Error);
/***********************************************************************************************************************************
testTryRecurse - test to blow up try stack
***********************************************************************************************************************************/
volatile int testTryRecurseTotal = 0;
bool testTryRecurseCatch = false;
bool testTryRecurseFinally = false;
static volatile int testTryRecurseTotal = 0;
static bool testTryRecurseCatch = false;
static bool testTryRecurseFinally = false;
void
static void
testTryRecurse(void)
{
TRY_BEGIN()
@ -58,7 +58,7 @@ testErrorHandler(unsigned int tryDepth)
/***********************************************************************************************************************************
Test Run
***********************************************************************************************************************************/
void
static void
testRun(void)
{
FUNCTION_HARNESS_VOID();

View File

@ -6,7 +6,7 @@ Execute Process
/***********************************************************************************************************************************
Test Run
***********************************************************************************************************************************/
void
static void
testRun(void)
{
FUNCTION_HARNESS_VOID();

View File

@ -13,7 +13,7 @@ Test Exit Routines
/***********************************************************************************************************************************
Test Run
***********************************************************************************************************************************/
void
static void
testRun(void)
{
FUNCTION_HARNESS_VOID();

View File

@ -6,7 +6,7 @@ Test Fork Handler
/***********************************************************************************************************************************
Test Run
***********************************************************************************************************************************/
void
static void
testRun(void)
{
FUNCTION_HARNESS_VOID();

View File

@ -18,7 +18,7 @@ testIniLoadCallback(void *data, const String *section, const String *key, const
/***********************************************************************************************************************************
Test Run
***********************************************************************************************************************************/
void
static void
testRun(void)
{
FUNCTION_HARNESS_VOID();

View File

@ -20,7 +20,7 @@ HTTP user agent header
/***********************************************************************************************************************************
Test Run
***********************************************************************************************************************************/
void
static void
testRun(void)
{
FUNCTION_HARNESS_VOID();

View File

@ -244,7 +244,7 @@ ioTestFilterMultiplyNew(const StringId type, unsigned int multiplier, unsigned i
/***********************************************************************************************************************************
Test Run
***********************************************************************************************************************************/
void
static void
testRun(void)
{
FUNCTION_HARNESS_VOID();

View File

@ -13,7 +13,7 @@ Test Tls Client
/***********************************************************************************************************************************
Test Run
***********************************************************************************************************************************/
void
static void
testRun(void)
{
FUNCTION_HARNESS_VOID();

View File

@ -9,7 +9,7 @@ Test Lock Handler
/***********************************************************************************************************************************
Test Run
***********************************************************************************************************************************/
void
static void
testRun(void)
{
FUNCTION_HARNESS_VOID();

View File

@ -70,7 +70,7 @@ testLogLoad(const char *logFile, char *buffer, size_t bufferSize)
/***********************************************************************************************************************************
Compare log to a static string
***********************************************************************************************************************************/
void
static void
testLogResult(const char *logFile, const char *expected)
{
FUNCTION_HARNESS_BEGIN();
@ -94,7 +94,7 @@ testLogResult(const char *logFile, const char *expected)
/***********************************************************************************************************************************
Test Run
***********************************************************************************************************************************/
void
static void
testRun(void)
{
FUNCTION_HARNESS_VOID();

View File

@ -5,10 +5,10 @@ Test Memory Contexts
/***********************************************************************************************************************************
testFree - test callback function
***********************************************************************************************************************************/
MemContext *memContextCallbackArgument = NULL;
bool testFreeThrow = false;
static MemContext *memContextCallbackArgument = NULL;
static bool testFreeThrow = false;
void
static void
testFree(void *thisVoid)
{
MemContext *this = thisVoid;
@ -31,7 +31,7 @@ testFree(void *thisVoid)
/***********************************************************************************************************************************
Test Run
***********************************************************************************************************************************/
void
static void
testRun(void)
{
FUNCTION_HARNESS_VOID();

View File

@ -5,7 +5,7 @@ Test Regular Expression Handler
/***********************************************************************************************************************************
Test Run
***********************************************************************************************************************************/
void
static void
testRun(void)
{
FUNCTION_HARNESS_VOID();

View File

@ -6,7 +6,7 @@ Test Stack Trace Handler
/***********************************************************************************************************************************
Test Run
***********************************************************************************************************************************/
void
static void
testRun(void)
{
FUNCTION_HARNESS_VOID();

View File

@ -6,7 +6,7 @@ Test Statistics Collector
/***********************************************************************************************************************************
Test Run
***********************************************************************************************************************************/
void
static void
testRun(void)
{
FUNCTION_HARNESS_VOID();

View File

@ -6,7 +6,7 @@ Test Time Management
/***********************************************************************************************************************************
Test Run
***********************************************************************************************************************************/
void
static void
testRun(void)
{
FUNCTION_HARNESS_VOID();

View File

@ -5,7 +5,7 @@ Test Buffers
/***********************************************************************************************************************************
Test Run
***********************************************************************************************************************************/
void
static void
testRun(void)
{
FUNCTION_HARNESS_VOID();

View File

@ -6,7 +6,7 @@ Test Convert C Types
/***********************************************************************************************************************************
Test Run
***********************************************************************************************************************************/
void
static void
testRun(void)
{
FUNCTION_HARNESS_VOID();

View File

@ -5,7 +5,7 @@ Test Convert JSON to/from KeyValue
/***********************************************************************************************************************************
Test Run
***********************************************************************************************************************************/
void
static void
testRun(void)
{
FUNCTION_HARNESS_VOID();

View File

@ -5,7 +5,7 @@ Test Key Value Data Type
/***********************************************************************************************************************************
Test Run
***********************************************************************************************************************************/
void
static void
testRun(void)
{
FUNCTION_HARNESS_VOID();

View File

@ -24,7 +24,7 @@ testComparator(const void *item1, const void *item2)
/***********************************************************************************************************************************
Test Run
***********************************************************************************************************************************/
void
static void
testRun(void)
{
FUNCTION_HARNESS_VOID();

View File

@ -5,7 +5,7 @@ Test Most Common Value
/***********************************************************************************************************************************
Test Run
***********************************************************************************************************************************/
void
static void
testRun(void)
{
FUNCTION_HARNESS_VOID();

View File

@ -19,32 +19,32 @@ typedef struct TestObjectContext
/***********************************************************************************************************************************
Standard object methods
***********************************************************************************************************************************/
TestObject *
static TestObject *
testObjectMove(TestObject *this, MemContext *parentNew)
{
return objMove(this, parentNew);
}
void
static void
testObjectFree(TestObject *this)
{
objFree(this);
}
TestObjectContext *
static TestObjectContext *
testObjectContextMove(TestObjectContext *this, MemContext *parentNew)
{
return objMoveContext(this, parentNew);
}
void
static void
testObjectContextFree(TestObjectContext *this)
{
objFreeContext(this);
}
/**********************************************************************************************************************************/
TestObject *
static TestObject *
testObjectNew(void)
{
TestObject *this = NULL;
@ -64,7 +64,7 @@ testObjectNew(void)
}
/**********************************************************************************************************************************/
TestObjectContext *
static TestObjectContext *
testObjectContextNew(void)
{
TestObjectContext *this = NULL;
@ -86,7 +86,7 @@ testObjectContextNew(void)
/***********************************************************************************************************************************
Test Run
***********************************************************************************************************************************/
void
static void
testRun(void)
{
FUNCTION_HARNESS_VOID();

View File

@ -9,7 +9,7 @@ Test Pack Type
/***********************************************************************************************************************************
Test Run
***********************************************************************************************************************************/
void
static void
testRun(void)
{
FUNCTION_HARNESS_VOID();

View File

@ -16,7 +16,7 @@ typedef enum
testStringIdEnumTest = STRID5("test", 0xa4cb40),
} TestStringIdEnum;
TestStringIdEnum
static TestStringIdEnum
testStringIdEnumFunc(TestStringIdEnum testEnum)
{
return testEnum;
@ -25,7 +25,7 @@ testStringIdEnumFunc(TestStringIdEnum testEnum)
/***********************************************************************************************************************************
Test Run
***********************************************************************************************************************************/
void
static void
testRun(void)
{
FUNCTION_HARNESS_VOID();

View File

@ -6,7 +6,7 @@ Test Variant Data Type
/***********************************************************************************************************************************
Test Run
***********************************************************************************************************************************/
void
static void
testRun(void)
{
FUNCTION_HARNESS_VOID();

View File

@ -5,7 +5,7 @@ Test Xml Types
/***********************************************************************************************************************************
Test Run
***********************************************************************************************************************************/
void
static void
testRun(void)
{
FUNCTION_HARNESS_VOID();

View File

@ -3,7 +3,7 @@ Test C Types
***********************************************************************************************************************************/
#include <assert.h>
void
static void
testRun(void)
{
FUNCTION_HARNESS_VOID();

View File

@ -5,7 +5,7 @@ Test System User/Group Management
/***********************************************************************************************************************************
Test Run
***********************************************************************************************************************************/
void
static void
testRun(void)
{
FUNCTION_HARNESS_VOID();

View File

@ -5,7 +5,7 @@ Test Wait Handler
/***********************************************************************************************************************************
Test Run
***********************************************************************************************************************************/
void
static void
testRun(void)
{
FUNCTION_HARNESS_VOID();

View File

@ -7,7 +7,7 @@ Test Exec Configuration
/***********************************************************************************************************************************
Test Run
***********************************************************************************************************************************/
void
static void
testRun(void)
{
FUNCTION_HARNESS_VOID();

View File

@ -13,7 +13,7 @@ Test Configuration Load
/***********************************************************************************************************************************
Test run
***********************************************************************************************************************************/
void
static void
testRun(void)
{
FUNCTION_HARNESS_VOID();

View File

@ -34,7 +34,7 @@ testOptionFind(const char *optionName, unsigned int optionId, unsigned int optio
/***********************************************************************************************************************************
Test run
***********************************************************************************************************************************/
void
static void
testRun(void)
{
FUNCTION_HARNESS_VOID();

View File

@ -12,7 +12,7 @@ Test Configuration Protocol
/***********************************************************************************************************************************
Test run
***********************************************************************************************************************************/
void
static void
testRun(void)
{
FUNCTION_HARNESS_VOID();

View File

@ -48,7 +48,7 @@ Macro to check that replay is making progress -- this does not seem useful enoug
/***********************************************************************************************************************************
Test Run
***********************************************************************************************************************************/
void
static void
testRun(void)
{
FUNCTION_HARNESS_VOID();

View File

@ -12,7 +12,7 @@ Test Archive Info Handler
/***********************************************************************************************************************************
Test Run
***********************************************************************************************************************************/
void
static void
testRun(void)
{
// Create default storage object for testing

View File

@ -13,7 +13,7 @@ Test Backup Info Handler
/***********************************************************************************************************************************
Test Run
***********************************************************************************************************************************/
void
static void
testRun(void)
{
// Create default storage object for testing

View File

@ -28,7 +28,7 @@ testInfoBackupSaveCallback(void *data, const String *sectionNext, InfoSave *info
/***********************************************************************************************************************************
Test Run
***********************************************************************************************************************************/
void
static void
testRun(void)
{
// *****************************************************************************************************************************

View File

@ -70,7 +70,7 @@ testInfoSaveCallback(void *data, const String *sectionNext, InfoSave *infoSaveDa
/***********************************************************************************************************************************
Test Run
***********************************************************************************************************************************/
void
static void
testRun(void)
{
// *****************************************************************************************************************************

View File

@ -19,7 +19,7 @@ Special string constants
/***********************************************************************************************************************************
Test Run
***********************************************************************************************************************************/
void
static void
testRun(void)
{
Storage *storageTest = storagePosixNewP(TEST_PATH_STR, .write = true);

View File

@ -138,7 +138,7 @@ testIoRateNew(uint64_t bytesPerSec)
/***********************************************************************************************************************************
Test Run
***********************************************************************************************************************************/
void
static void
testRun(void)
{
FUNCTION_HARNESS_VOID();

View File

@ -147,7 +147,7 @@ storageTestManifestNewBuildInfoList(
/***********************************************************************************************************************************
Test Run
***********************************************************************************************************************************/
void
static void
testRun(void)
{
FUNCTION_HARNESS_VOID();

View File

@ -15,7 +15,7 @@ This test can be run two ways:
/***********************************************************************************************************************************
Test Run
***********************************************************************************************************************************/
void
static void
testRun(void)
{
FUNCTION_HARNESS_VOID();

View File

@ -8,7 +8,7 @@ Test PostgreSQL Interface
/***********************************************************************************************************************************
Test Run
***********************************************************************************************************************************/
void
static void
testRun(void)
{
FUNCTION_HARNESS_VOID();

View File

@ -188,7 +188,7 @@ static ProtocolParallelJob *testParallelJobCallback(void *data, unsigned int cli
/***********************************************************************************************************************************
Test Run
***********************************************************************************************************************************/
void
static void
testRun(void)
{
FUNCTION_HARNESS_VOID();

View File

@ -165,7 +165,7 @@ testResponse(IoWrite *write, TestResponseParam param)
/***********************************************************************************************************************************
Test Run
***********************************************************************************************************************************/
void
static void
testRun(void)
{
FUNCTION_HARNESS_VOID();

View File

@ -181,7 +181,7 @@ testResponse(IoWrite *write, TestResponseParam param)
/***********************************************************************************************************************************
Test Run
***********************************************************************************************************************************/
void
static void
testRun(void)
{
FUNCTION_HARNESS_VOID();

View File

@ -13,7 +13,7 @@ Test Posix/CIFS Storage
/***********************************************************************************************************************************
Test function for path expression
***********************************************************************************************************************************/
String *
static String *
storageTestPathExpression(const String *expression, const String *path)
{
String *result = NULL;
@ -36,7 +36,7 @@ Macro to create a path and file that cannot be accessed
/***********************************************************************************************************************************
Test Run
***********************************************************************************************************************************/
void
static void
testRun(void)
{
FUNCTION_HARNESS_VOID();

View File

@ -16,7 +16,7 @@ Test Remote Storage
/***********************************************************************************************************************************
Test Run
***********************************************************************************************************************************/
void
static void
testRun(void)
{
FUNCTION_HARNESS_VOID();

View File

@ -197,7 +197,7 @@ testS3DateTime(time_t time)
/***********************************************************************************************************************************
Test Run
***********************************************************************************************************************************/
void
static void
testRun(void)
{
FUNCTION_HARNESS_VOID();