[PATCH] Change test to use VERIFY not assert
Jonathan Wakely
jwakely@redhat.com
Thu Oct 13 16:37:00 GMT 2016
This used to pass because <testsuite_hooks.h> included <assert.h>, but
it doesn't now. The test wasn't failing because the stdc++.h PCH
included <assert.h>, but it fails without PCH.
* testsuite/26_numerics/random/default_random_engine.cc: Use VERIFY
instead of assert.
Tested x86_64-linux, committed to trunk.
-------------- next part --------------
commit 81c756a8a213ca217602aa1fa90d513989adb2e5
Author: Jonathan Wakely <jwakely@redhat.com>
Date: Thu Oct 13 17:30:43 2016 +0100
Change test to use VERIFY not assert
* testsuite/26_numerics/random/default_random_engine.cc: Use VERIFY
instead of assert.
diff --git a/libstdc++-v3/testsuite/26_numerics/random/default_random_engine.cc b/libstdc++-v3/testsuite/26_numerics/random/default_random_engine.cc
index 99d5e1f..e21c7ae 100644
--- a/libstdc++-v3/testsuite/26_numerics/random/default_random_engine.cc
+++ b/libstdc++-v3/testsuite/26_numerics/random/default_random_engine.cc
@@ -20,7 +20,7 @@
// with this library; see the file COPYING3. If not see
// <http://www.gnu.org/licenses/>.
-// 26.4.5 Engines and egine adaptors with predefined parameters [rand.predef]
+// 26.4.5 Engines and engine adaptors with predefined parameters [rand.predef]
// 26.4.5 [10]
#include <random>
@@ -38,7 +38,7 @@ test01()
std::minstd_rand0 b;
b.discard(9999);
- assert( a() == b() );
+ VERIFY( a() == b() );
}
int main()
More information about the Libstdc++
mailing list