Mercurial > hg > orthanc
comparison UnitTestsSources/UnitTestsMain.cpp @ 1050:64f1842aae2e
Toolbox::ExecuteSystemCommand
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Wed, 23 Jul 2014 11:36:35 +0200 |
parents | 0bfeeb6d340f |
children | e56c3ed8d738 |
comparison
equal
deleted
inserted
replaced
1049:bd2cb95003da | 1050:64f1842aae2e |
---|---|
687 std::string s; | 687 std::string s; |
688 Toolbox::JsonToXml(s, a); | 688 Toolbox::JsonToXml(s, a); |
689 | 689 |
690 std::cout << s; | 690 std::cout << s; |
691 } | 691 } |
692 | 692 #endif |
693 | |
694 | |
695 #if !defined(_WIN32) | |
696 TEST(Toolbox, ExecuteSystemCommand) | |
697 { | |
698 std::vector<std::string> args(2); | |
699 args[0] = "Hello"; | |
700 args[1] = "World"; | |
701 | |
702 Toolbox::ExecuteSystemCommand("echo", args); | |
703 } | |
693 #endif | 704 #endif |
694 | 705 |
695 | 706 |
696 int main(int argc, char **argv) | 707 int main(int argc, char **argv) |
697 { | 708 { |