Skip to content

Commit

Permalink
write on stdout instead of stderr in test targets, powershell doesn't…
Browse files Browse the repository at this point in the history
… like this

should help appveyor build
  • Loading branch information
cbeck88 committed Nov 15, 2016
1 parent 42943bd commit 6dc6958
Show file tree
Hide file tree
Showing 4 changed files with 18 additions and 18 deletions.
8 changes: 4 additions & 4 deletions test_visit_struct.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -115,23 +115,23 @@ struct test_visitor_three {
struct debug_printer {
template <typename T>
void operator()(const char * name, const T & t) const {
std::cerr << " " << name << ": " << t << std::endl;
std::cout << " " << name << ": " << t << std::endl;
}
};

template <typename T>
void debug_print(const T & t) {
std::cerr << "{\n";
std::cout << "{\n";
visit_struct::apply_visitor(debug_printer{}, t);
std::cerr << "}" << std::endl;
std::cout << "}" << std::endl;
}

/***
* tests
*/

int main() {
std::cerr << __FILE__ << std::endl;
std::cout << __FILE__ << std::endl;

{
test_struct_one s{ 5, 7.5f, "asdf" };
Expand Down
10 changes: 5 additions & 5 deletions test_visit_struct_boost_fusion.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -101,15 +101,15 @@ struct test_visitor_three {
struct debug_printer {
template <typename T>
void operator()(const char * name, const T & t) const {
std::cerr << " " << name << ": " << t << std::endl;
std::cout << " " << name << ": " << t << std::endl;
}
};

template <typename T>
void debug_print(const T & t) {
std::cerr << "{\n";
std::cout << "{\n";
visit_struct::apply_visitor(debug_printer{}, t);
std::cerr << "}" << std::endl;
std::cout << "}" << std::endl;
}

/***
Expand All @@ -119,8 +119,8 @@ void debug_print(const T & t) {
#include <boost/version.hpp>

int main() {
std::cerr << __FILE__ << std::endl;
std::cerr << "Boost version: "<< BOOST_LIB_VERSION << std::endl;
std::cout << __FILE__ << std::endl;
std::cout << "Boost version: "<< BOOST_LIB_VERSION << std::endl;

{
test_struct_one s{ 5, 7.5f, "asdf" };
Expand Down
10 changes: 5 additions & 5 deletions test_visit_struct_boost_hana.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -104,15 +104,15 @@ struct test_visitor_three {
struct debug_printer {
template <typename T>
void operator()(const char * name, const T & t) const {
std::cerr << " " << name << ": " << t << std::endl;
std::cout << " " << name << ": " << t << std::endl;
}
};

template <typename T>
void debug_print(const T & t) {
std::cerr << "{\n";
std::cout << "{\n";
visit_struct::apply_visitor(debug_printer{}, t);
std::cerr << "}" << std::endl;
std::cout << "}" << std::endl;
}

/***
Expand All @@ -122,8 +122,8 @@ void debug_print(const T & t) {
#include <boost/version.hpp>

int main() {
std::cerr << __FILE__ << std::endl;
std::cerr << "Boost version: "<< BOOST_LIB_VERSION << std::endl;
std::cout << __FILE__ << std::endl;
std::cout << "Boost version: "<< BOOST_LIB_VERSION << std::endl;

{
test_struct_one s{ 5, 7.5f, "asdf" };
Expand Down
8 changes: 4 additions & 4 deletions test_visit_struct_intrusive.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -85,19 +85,19 @@ struct test_visitor_three {
struct debug_printer {
template <typename T>
void operator()(const char * name, const T & t) const {
std::cerr << " " << name << ": " << t << std::endl;
std::cout << " " << name << ": " << t << std::endl;
}
};

template <typename T>
void debug_print(const T & t) {
std::cerr << "{\n";
std::cout << "{\n";
visit_struct::apply_visitor(debug_printer{}, t);
std::cerr << "}" << std::endl;
std::cout << "}" << std::endl;
}

int main() {
std::cerr << __FILE__ << std::endl;
std::cout << __FILE__ << std::endl;

{
test::foo s{ true, 5, 7.5f };
Expand Down

0 comments on commit 6dc6958

Please sign in to comment.