diff options
| author | brad kittenbrink <brad@lindenlab.com> | 2009-08-27 16:25:02 -0400 | 
|---|---|---|
| committer | brad kittenbrink <brad@lindenlab.com> | 2009-08-27 16:25:02 -0400 | 
| commit | d020dae7b9c156a08d1dd17eade7f36011f4d0fe (patch) | |
| tree | 67b1a28222116b20c5fa7bcc1cbd86ca47a91aa7 /indra/test/test.cpp | |
| parent | 745845f79987e4b4ab7f5728746a0eda8898930f (diff) | |
| parent | 70600ea66adc816e72e91e804deebde40ed6b1bc (diff) | |
Merged latest login-api with latest viewer-2.0.0-3 up through plugin-api-05 merge (r131929).
Some minor post-merge cleanups still required.
Diffstat (limited to 'indra/test/test.cpp')
| -rw-r--r-- | indra/test/test.cpp | 19 | 
1 files changed, 10 insertions, 9 deletions
| diff --git a/indra/test/test.cpp b/indra/test/test.cpp index ba81c6e49e..0ba5758e15 100644 --- a/indra/test/test.cpp +++ b/indra/test/test.cpp @@ -64,13 +64,14 @@ namespace tut  class LLTestCallback : public tut::callback  {  public: -	LLTestCallback(bool verbose_mode, std::ostream *stream) : +	LLTestCallback(bool verbose_mode, std::ostream *stream, bool wait) :  		mVerboseMode(verbose_mode),  		mTotalTests(0),  		mPassedTests(0),  		mFailedTests(0),  		mSkippedTests(0), -		mStream(stream) +		mStream(stream), +        mWaitAtExit(wait)  	{  	} @@ -137,6 +138,11 @@ public:  		}  		run_completed_(std::cout); +        if(mWaitAtExit) { +            std::cerr << "Waiting for input before exiting..." << std::endl; +	        std::cin.get(); +        } +  		if (mFailedTests > 0)  		{  			exit(1); @@ -176,6 +182,7 @@ protected:  	int mFailedTests;  	int mSkippedTests;  	std::ostream *mStream; +    bool mWaitAtExit;  };  static const apr_getopt_option_t TEST_CL_OPTIONS[] = @@ -328,7 +335,7 @@ int main(int argc, char **argv)  	}  	// run the tests -	LLTestCallback callback(verbose_mode, output); +	LLTestCallback callback(verbose_mode, output, wait_at_exit);  	tut::runner.get().set_callback(&callback);  	if(test_group.empty()) @@ -339,12 +346,6 @@ int main(int argc, char **argv)  	{  		tut::runner.get().run_tests(test_group);  	} - -	if (wait_at_exit) -	{ -		std::cerr << "Waiting for input before exiting..." << std::endl; -		std::cin.get(); -	}  	if (output)  	{ | 
