Giacomo Travaglini has uploaded this change for review. (
https://gem5-review.googlesource.com/c/public/gem5/+/42623 )
Change subject: base: Disable Death test for fast builds
......................................................................
base: Disable Death test for fast builds
The test would otherwise fail as the expected assertion
is stripped out of the build.
Change-Id: I7c1238b43ee86ad82ad89251754e4c804d8bf16d
Signed-off-by: Giacomo Travaglini <[email protected]>
---
M src/base/intmath.test.cc
1 file changed, 5 insertions(+), 0 deletions(-)
diff --git a/src/base/intmath.test.cc b/src/base/intmath.test.cc
index b4bd2a5..2373291 100644
--- a/src/base/intmath.test.cc
+++ b/src/base/intmath.test.cc
@@ -151,6 +151,9 @@
* 2) value < 0
* 3) value is not a power of 2
*/
+
+#ifndef NDEBUG
+
TEST(IntmathDeathTest, Log2iDeath)
{
// 1) value = 0
@@ -171,3 +174,5 @@
log2i(value);
}, "isPowerOf2");
}
+
+#endif
--
To view, visit https://gem5-review.googlesource.com/c/public/gem5/+/42623
To unsubscribe, or for help writing mail filters, visit
https://gem5-review.googlesource.com/settings
Gerrit-Project: public/gem5
Gerrit-Branch: develop
Gerrit-Change-Id: I7c1238b43ee86ad82ad89251754e4c804d8bf16d
Gerrit-Change-Number: 42623
Gerrit-PatchSet: 1
Gerrit-Owner: Giacomo Travaglini <[email protected]>
Gerrit-MessageType: newchange
_______________________________________________
gem5-dev mailing list -- [email protected]
To unsubscribe send an email to [email protected]
%(web_page_url)slistinfo%(cgiext)s/%(_internal_name)s