llvm/lldb/unittests/Process/elf-core/ThreadElfCoreTest.cpp

//===-- ThreadElfCoreTest.cpp ------------------------------------*- C++
//-*-===//
//
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
// See https://llvm.org/LICENSE.txt for license information.
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
//
//===----------------------------------------------------------------------===//
#include "Plugins/Process/elf-core/ThreadElfCore.h"
#include "Plugins/Platform/Linux/PlatformLinux.h"
#include "TestingSupport/TestUtilities.h"
#include "lldb/Core/Debugger.h"
#include "lldb/Host/FileSystem.h"
#include "lldb/Host/HostInfo.h"
#include "lldb/Target/Process.h"
#include "lldb/Target/Target.h"
#include "lldb/Target/Thread.h"
#include "lldb/Utility/Listener.h"
#include "llvm/TargetParser/Triple.h"
#include "gtest/gtest.h"

#include <memory>
#include <mutex>
#include <sys/resource.h>
#include <unistd.h>

#ifndef HAVE_GETTID
#include <sys/syscall.h>
pid_t gettid() { return ((pid_t)syscall(SYS_gettid)); }
#endif

usingnamespacelldb_private;

namespace {

struct ElfCoreTest : public testing::Test {};

struct DummyProcess : public Process {};

struct DummyThread : public Thread {};

lldb::TargetSP CreateTarget(lldb::DebuggerSP &debugger_sp, ArchSpec &arch) {}

lldb::ThreadSP CreateThread(lldb::ProcessSP &process_sp) {}

} // namespace

TEST_F(ElfCoreTest, PopulatePrpsInfoTest) {}

TEST_F(ElfCoreTest, PopulatePrStatusTest) {}