diff options
| author | Ankur Ahlawat <anchor@lindenlab.com> | 2018-01-17 15:53:56 -0800 | 
|---|---|---|
| committer | Ankur Ahlawat <anchor@lindenlab.com> | 2018-01-17 15:53:56 -0800 | 
| commit | 5a12a88f7b53bb99a6b302c35d891a8ecee59855 (patch) | |
| tree | dd52f7a9f76ac5d696a517f351371ceb619b7d30 /indra/test | |
| parent | d4ce47b09122d1f76601ba402c2b9ad6bb504950 (diff) | |
| parent | 7acbd8ed8d73c507675d45360df07d232c431a8b (diff) | |
Merged lindenlab/viewer-release into default
Diffstat (limited to 'indra/test')
| -rw-r--r-- | indra/test/CMakeLists.txt | 1 | ||||
| -rw-r--r-- | indra/test/llstreamtools_tut.cpp | 13 | 
2 files changed, 5 insertions, 9 deletions
diff --git a/indra/test/CMakeLists.txt b/indra/test/CMakeLists.txt index 55442b2521..8344cead57 100644 --- a/indra/test/CMakeLists.txt +++ b/indra/test/CMakeLists.txt @@ -102,7 +102,6 @@ target_link_libraries(lltest      ${BOOST_CONTEXT_LIBRARY}      ${BOOST_SYSTEM_LIBRARY}      ${DL_LIBRARY} -    ${GOOGLE_PERFTOOLS_LIBRARIES}      )  if (WINDOWS) diff --git a/indra/test/llstreamtools_tut.cpp b/indra/test/llstreamtools_tut.cpp index 0f6436f0f4..2f027b688f 100644 --- a/indra/test/llstreamtools_tut.cpp +++ b/indra/test/llstreamtools_tut.cpp @@ -149,10 +149,9 @@ namespace tut  		is.clear();  		is.str(str = "#    \r\n  #  SecondLife is a 3D World. ##"); -		skip_comments_and_emptyspace(is); -		is.get(arr, 255, '\0'); -		expected_result = ""; -		ensure_equals("skip_comments_and_emptyspace: skip comment - 2", arr, expected_result); +		ensure("should not be good()", ! skip_comments_and_emptyspace(is)); +		ensure("should be at eof()", is.eof()); +		// don't get(): given bad state, we can't rely on results  		is.clear();  		is.str(str = " \r\n  SecondLife is a 3D World. ##"); @@ -164,14 +163,12 @@ namespace tut  		is.clear();  		is.str(str = "");  		ret = skip_comments_and_emptyspace(is); -		is.get(arr, 255, '\0'); -		ensure("skip_comments_and_emptyspace: empty string", ret == false); +		ensure("skip_comments_and_emptyspace: empty string", ! ret);  		is.clear();  		is.str(str = "  \r\n  \t # SecondLife is a 3D World");  		ret = skip_comments_and_emptyspace(is); -		is.get(arr, 255, '\0'); -		ensure("skip_comments_and_emptyspace: space newline comment empty", ret == false); +		ensure("skip_comments_and_emptyspace: space newline comment empty", ! ret);  	}  	//testcases for skip_line()  | 
