stc
Loading...
Searching...
No Matches
Functions
UnixCommandTests.cpp File Reference
#include <format>
#include <filesystem>
#include <stc/StringUtil.hpp>
#include <util/FreeEnv.hpp>
#include "_meta/Constants.hpp"
#include <stc/unix/Process.hpp>
#include <catch2/catch_test_macros.hpp>
#include <stc/test/CaptureStream.hpp>

Functions

 TEST_CASE ("Process should work with pipes", "[Process]")
 
 TEST_CASE ("Process should work without pipes", "[Process]")
 
 TEST_CASE ("Process should work with PTY mode", "[Process]")
 
 TEST_CASE ("Process should handle signals appropriately", "[Process]")
 
 TEST_CASE ("exitedNormally should not be set by a self-exiting process", "[Process]")
 
 TEST_CASE ("Baseline: Environment should default to environ", "[Process]")
 
 TEST_CASE ("stc::Unix::Environment should be able to ignore environ", "[Process]")
 
 TEST_CASE ("stc::Unix::Environment should merge properly with environ", "[Process]")
 
 TEST_CASE ("stc::Unix::Environment defining existing variables shouldn't cause problems", "[Process]")
 
 TEST_CASE ("Clearing buffers should work", "[Process]")
 
 TEST_CASE ("Not stopping a process shouldn't cause a segfault", "[Process]")
 
 TEST_CASE ("Chdir changing should work as expected", "[Process]")
 
 TEST_CASE ("When enabled, Process should output its command")
 

Function Documentation

◆ TEST_CASE() [1/13]

TEST_CASE ( "Baseline: Environment should default to environ"  ,
""  [Process] 
)

◆ TEST_CASE() [2/13]

TEST_CASE ( "Chdir changing should work as expected"  ,
""  [Process] 
)

◆ TEST_CASE() [3/13]

TEST_CASE ( "Clearing buffers should work"  ,
""  [Process] 
)

◆ TEST_CASE() [4/13]

TEST_CASE ( "exitedNormally should not be set by a self-exiting process"  ,
""  [Process] 
)

◆ TEST_CASE() [5/13]

TEST_CASE ( "Not stopping a process shouldn't cause a segfault"  ,
""  [Process] 
)

◆ TEST_CASE() [6/13]

TEST_CASE ( "Process should handle signals appropriately"  ,
""  [Process] 
)

◆ TEST_CASE() [7/13]

TEST_CASE ( "Process should work with pipes"  ,
""  [Process] 
)

◆ TEST_CASE() [8/13]

TEST_CASE ( "Process should work with PTY mode"  ,
""  [Process] 
)

◆ TEST_CASE() [9/13]

TEST_CASE ( "Process should work without pipes"  ,
""  [Process] 
)

◆ TEST_CASE() [10/13]

TEST_CASE ( "stc::Unix::Environment defining existing variables shouldn't cause problems"  ,
""  [Process] 
)

◆ TEST_CASE() [11/13]

TEST_CASE ( "stc::Unix::Environment should be able to ignore environ"  ,
""  [Process] 
)

◆ TEST_CASE() [12/13]

TEST_CASE ( "stc::Unix::Environment should merge properly with environ"  ,
""  [Process] 
)

◆ TEST_CASE() [13/13]

TEST_CASE ( "When  enabled,
Process should output its command"   
)