Back to index

nordugrid-arc-nox  1.1.0~rc6
Public Member Functions | Private Member Functions
RunTest Class Reference

List of all members.

Public Member Functions

void setUp ()
void tearDown ()
void TestRun0 ()
void TestRun255 ()

Private Member Functions

 CPPUNIT_TEST_SUITE (RunTest)
 CPPUNIT_TEST (TestRun0)
 CPPUNIT_TEST (TestRun255)
 CPPUNIT_TEST_SUITE_END ()

Detailed Description

Definition at line 9 of file RunTest.cpp.


Member Function Documentation

void RunTest::setUp ( )

Definition at line 27 of file RunTest.cpp.

                    {
}

Definition at line 31 of file RunTest.cpp.

                       {
}

Definition at line 34 of file RunTest.cpp.

                       {
  std::string outstr;
  std::string errstr;
  Arc::Run run("./rcode 0");
  run.AssignStdout(outstr);
  run.AssignStderr(errstr);
  CPPUNIT_ASSERT((bool)run);
  CPPUNIT_ASSERT(run.Start());
  CPPUNIT_ASSERT(run.Wait(10));
  CPPUNIT_ASSERT_EQUAL(0, run.Result());
  CPPUNIT_ASSERT_EQUAL(std::string("STDOUT"), outstr);
  CPPUNIT_ASSERT_EQUAL(std::string("STDERR"), errstr);
}

Here is the call graph for this function:

Definition at line 48 of file RunTest.cpp.

                         {
  std::string outstr;
  std::string errstr;
  Arc::Run run("./rcode 255");
  run.AssignStdout(outstr);
  run.AssignStderr(errstr);
  CPPUNIT_ASSERT((bool)run);
  CPPUNIT_ASSERT(run.Start());
  CPPUNIT_ASSERT(run.Wait(10));
  CPPUNIT_ASSERT_EQUAL(255, run.Result());
}

Here is the call graph for this function:


The documentation for this class was generated from the following file: