mirror of
https://github.com/arun11299/cpp-subprocess.git
synced 2025-08-06 05:16:24 -04:00
ci: disable nonworking windows tests
This commit is contained in:
parent
a32c0f3df4
commit
8dbbfc64bc
@ -58,6 +58,8 @@ void test_buffer_growth_threaded_comm()
|
|||||||
}
|
}
|
||||||
|
|
||||||
int main() {
|
int main() {
|
||||||
|
#ifndef __USING_WINDOWS__
|
||||||
|
|
||||||
// test_cat_pipe_redirection();
|
// test_cat_pipe_redirection();
|
||||||
test_cat_send_terminate();
|
test_cat_send_terminate();
|
||||||
/*
|
/*
|
||||||
@ -65,5 +67,8 @@ int main() {
|
|||||||
test_buffer_growth();
|
test_buffer_growth();
|
||||||
test_buffer_growth_threaded_comm();
|
test_buffer_growth_threaded_comm();
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
#endif
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
@ -3,6 +3,8 @@
|
|||||||
|
|
||||||
using namespace subprocess;
|
using namespace subprocess;
|
||||||
|
|
||||||
|
#ifndef __USING_WINDOWS__
|
||||||
|
|
||||||
void test_env()
|
void test_env()
|
||||||
{
|
{
|
||||||
int st= Popen("./env_script.sh", environment{{
|
int st= Popen("./env_script.sh", environment{{
|
||||||
@ -13,7 +15,11 @@ void test_env()
|
|||||||
assert (st == 0);
|
assert (st == 0);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#endif
|
||||||
|
|
||||||
int main() {
|
int main() {
|
||||||
|
#ifndef __USING_WINDOWS__
|
||||||
test_env();
|
test_env();
|
||||||
|
#endif
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
@ -5,7 +5,7 @@ using namespace subprocess;
|
|||||||
|
|
||||||
void test_exename()
|
void test_exename()
|
||||||
{
|
{
|
||||||
#ifdef _MSC_VER
|
#ifdef __USING_WINDOWS__
|
||||||
auto ret = call({"--version"}, executable{"cmake"}, shell{false});
|
auto ret = call({"--version"}, executable{"cmake"}, shell{false});
|
||||||
#else
|
#else
|
||||||
auto ret = call({"-l"}, executable{"ls"}, shell{false});
|
auto ret = call({"-l"}, executable{"ls"}, shell{false});
|
||||||
@ -39,7 +39,7 @@ void test_easy_piping()
|
|||||||
|
|
||||||
void test_shell()
|
void test_shell()
|
||||||
{
|
{
|
||||||
#ifdef _MSC_VER
|
#ifdef __USING_WINDOWS__
|
||||||
auto obuf = check_output({"cmake", "--version"}, shell{false});
|
auto obuf = check_output({"cmake", "--version"}, shell{false});
|
||||||
#else
|
#else
|
||||||
auto obuf = check_output({"ls", "-l"}, shell{false});
|
auto obuf = check_output({"ls", "-l"}, shell{false});
|
||||||
@ -54,7 +54,7 @@ void test_sleep()
|
|||||||
while (p.poll() == -1)
|
while (p.poll() == -1)
|
||||||
{
|
{
|
||||||
std::cout << "Waiting..." << std::endl;
|
std::cout << "Waiting..." << std::endl;
|
||||||
#ifdef _MSC_VER
|
#ifdef __USING_WINDOWS__
|
||||||
#else
|
#else
|
||||||
sleep(1);
|
sleep(1);
|
||||||
#endif
|
#endif
|
||||||
|
Loading…
x
Reference in New Issue
Block a user