Correctly return the status of unit tests in testframework.cpp.
Correctly return the status of unit tests in testframework.cpp.

Reported by Ryuta Suzuki

--HG--
extra : convert_revision : svn%3A83215879-3e5a-4751-8c9d-778f44bb06a5/trunk%40795

dachziegel/thrust,xiongzhanblake/thrust,raygit/thrust,Ricardo666666/thrust,jaredhoberock/thrust,zhenglaizhang/thrust,zeryx/thrust,zeryx/thrust,mohamed-ali/thrust,thvasilo/thrust,mohamed-ali/thrust,raygit/thrust,Ricardo666666/thrust,zhenglaizhang/thrust,thrust/thrust,thrust/thrust,xiongzhanblake/thrust_src,sdalton1/thrust,andrewcorrigan/thrust-multi-permutation-iterator,mohamed-ali/thrust,jaredhoberock/thrust,zeryx/thrust,andrewcorrigan/thrust-multi-permutation-iterator,xiongzhanblake/thrust_src,sdalton1/thrust,egaburov/thrust,marksantos/thrust,thvasilo/thrust,thrust/thrust,Ricardo666666/thrust,egaburov/thrust,xiongzhanblake/thrust_src,marksantos/thrust,jaredhoberock/thrust,dachziegel/thrust,GrimDerp/thrust,sarvex/thrust,jaredhoberock/thrust,raygit/thrust,sarvex/thrust,xiongzhanblake/thrust,andrewcorrigan/thrust-multi-permutation-iterator,marksantos/thrust,jaredhoberock/thrust,GrimDerp/thrust,thrust/thrust,egaburov/thrust,arnabgho/thrust,dachziegel/thrust,arnabgho/thrust,sdalton1/thrust,thvasilo/thrust,xiongzhanblake/thrust,arnabgho/thrust,zhenglaizhang/thrust,thrust/thrust,GrimDerp/thrust,sarvex/thrust