class DlSystemTests

Defined at line 24 of file ../../sdk/lib/c/dlfcn/dl/test/dl-system-tests.h

Public Members

static const bool kCanMatchExactError
static const bool kStrictLoadOrderPriority
static const bool kCanValidateMode
static const bool kEmitsSymbolNotFound
static const bool kDlCloseCanRunFinalizers
static const bool kDlCloseUnloadsModules
static const bool kInaccurateLoadCountAfterSonameMatch
static const bool kSonameLookupInPendingDeps
static const bool kSupportsDlInfoExtensionFlags
static const bool kEmitsDlInfoUnsupportedValue
static ResolverPolicy kResolverPolicy

Public Methods

std::optional<Error> DlError ()

Defined at line 30 of file ../../sdk/lib/c/dlfcn/dl/test/dl-system-tests.cc

fit::result<Error, void *> DlOpen (const char * file, int mode)

Defined at line 39 of file ../../sdk/lib/c/dlfcn/dl/test/dl-system-tests.cc

fit::result<Error> DlClose (void * module)

Defined at line 55 of file ../../sdk/lib/c/dlfcn/dl/test/dl-system-tests.cc

fit::result<Error, void *> DlSym (void * module, const char * ref)

Defined at line 63 of file ../../sdk/lib/c/dlfcn/dl/test/dl-system-tests.cc

int DlIteratePhdr (DlIteratePhdrCallback * callback, void * data)

Defined at line 71 of file ../../sdk/lib/c/dlfcn/dl/test/dl-system-tests.cc

fit::result<Error, int> DlInfo (void * module, int request, void * info)

Defined at line 75 of file ../../sdk/lib/c/dlfcn/dl/test/dl-system-tests.cc

void SetUp ()

Defined at line 81 of file ../../sdk/lib/c/dlfcn/dl/test/dl-system-tests.h

void TearDown ()

Defined at line 83 of file ../../sdk/lib/c/dlfcn/dl/test/dl-system-tests.h

void CleanUpOpenedFile (void * ptr)

Defined at line 113 of file ../../sdk/lib/c/dlfcn/dl/test/dl-system-tests.h

void ExpectRootModule (std::string_view name)

ExpectRootModule or Needed are called by tests when a file is expected to

be loaded from the file system for the first time. The following functions

will call DlOpen(file, RTLD_NOLOAD) to ensure that `file` is not already

loaded (e.g. by a previous test).

Defined at line 114 of file ../../sdk/lib/c/dlfcn/dl/test/dl-system-tests.cc

void PrepareForTlsAccess ()

This function is a no-op for system tests, since they manage their own TLS

setup.

Defined at line 117 of file ../../sdk/lib/c/dlfcn/dl/test/dl-system-tests.h

void Needed (std::initializer_list<std::string_view> names)

Defined at line 119 of file ../../sdk/lib/c/dlfcn/dl/test/dl-system-tests.cc

const link_map * ModuleLinkMap (void * handle)

Call the system's dlinfo to fill in the link map for the given handle, and

return it to the caller.

Defined at line 121 of file ../../sdk/lib/c/dlfcn/dl/test/dl-system-tests.h

void Needed (std::initializer_list<std::pair<std::string_view, bool>> name_found_pairs)

Defined at line 127 of file ../../sdk/lib/c/dlfcn/dl/test/dl-system-tests.cc