#include "SubprocessMemory.h"
#include "X86/TestBase.h"
#include "gtest/gtest.h"
#include <string>
#include <unordered_map>
#ifdef __linux__
#include <endian.h>
#include <fcntl.h>
#include <sys/mman.h>
#include <sys/syscall.h>
#include <unistd.h>
#endif
namespace llvm {
namespace exegesis {
#if defined(__linux__) && !defined(__ANDROID__) && \
!(defined(__powerpc__) || defined(__s390x__) || defined(__sparc__))
static constexpr const size_t TestCount = …;
class SubprocessMemoryTest : public X86TestBase { … };
TEST_F(SubprocessMemoryTest, OneDefinition) { … }
TEST_F(SubprocessMemoryTest, MultipleDefinitions) { … }
TEST_F(SubprocessMemoryTest, DefinitionFillsCompletely) { … }
#if __BYTE_ORDER__ == __ORDER_BIG_ENDIAN__
TEST_F(SubprocessMemoryTest, DISABLED_DefinitionEndTruncation) {
#else
TEST_F(SubprocessMemoryTest, DefinitionEndTruncation) { … }
#endif
}
}