1*80814287SRaphael Isemann //===-- ProcessLaunchInfoTest.cpp -----------------------------------------===//
2eef758e9SPavel Labath //
3bae220ceSPavel Labath // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
4bae220ceSPavel Labath // See https://llvm.org/LICENSE.txt for license information.
5bae220ceSPavel Labath // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
6eef758e9SPavel Labath //
7eef758e9SPavel Labath //===----------------------------------------------------------------------===//
8eef758e9SPavel Labath
9eef758e9SPavel Labath #include "lldb/Host/ProcessLaunchInfo.h"
10eef758e9SPavel Labath #include "gtest/gtest.h"
11eef758e9SPavel Labath
12eef758e9SPavel Labath using namespace lldb_private;
13eef758e9SPavel Labath using namespace lldb;
14eef758e9SPavel Labath
TEST(ProcessLaunchInfoTest,Constructor)15eef758e9SPavel Labath TEST(ProcessLaunchInfoTest, Constructor) {
16eef758e9SPavel Labath ProcessLaunchInfo Info(FileSpec("/stdin"), FileSpec("/stdout"),
17eef758e9SPavel Labath FileSpec("/stderr"), FileSpec("/wd"),
18eef758e9SPavel Labath eLaunchFlagStopAtEntry);
19eef758e9SPavel Labath EXPECT_EQ(FileSpec("/stdin"),
20eef758e9SPavel Labath Info.GetFileActionForFD(STDIN_FILENO)->GetFileSpec());
21eef758e9SPavel Labath EXPECT_EQ(FileSpec("/stdout"),
22eef758e9SPavel Labath Info.GetFileActionForFD(STDOUT_FILENO)->GetFileSpec());
23eef758e9SPavel Labath EXPECT_EQ(FileSpec("/stderr"),
24eef758e9SPavel Labath Info.GetFileActionForFD(STDERR_FILENO)->GetFileSpec());
25eef758e9SPavel Labath EXPECT_EQ(FileSpec("/wd"), Info.GetWorkingDirectory());
26eef758e9SPavel Labath EXPECT_EQ(eLaunchFlagStopAtEntry, Info.GetFlags().Get());
27eef758e9SPavel Labath }
28