tests,base: Fixed unittests for .fast
authorBobby R. Bruce <bbruce@ucdavis.edu>
Mon, 21 Sep 2020 19:13:08 +0000 (12:13 -0700)
committerBobby R. Bruce <bbruce@ucdavis.edu>
Tue, 22 Sep 2020 01:46:22 +0000 (01:46 +0000)
commitb45bbef206b27325618e5a1076e092adbb73c6b9
treeecfed5e4e081946f1d76e2c048222a9d57dcb564
parent5a20525e75c7be4b4cc4f2a3f660b9b057190bc5
tests,base: Fixed unittests for .fast

unittests.fast, unittests.prof, and unittests.perf had failing tests due
to the stripping of asserts via compiler optimization. This patch alters
the unittests to skip these tests when TRACING_ON == 0.

Change-Id: I2d4ab795ecfc2c4556b5eb1877635409d0836ec6
Reviewed-on: https://gem5-review.googlesource.com/c/public/gem5/+/34898
Reviewed-by: Jason Lowe-Power <power.jg@gmail.com>
Maintainer: Jason Lowe-Power <power.jg@gmail.com>
Tested-by: kokoro <noreply+kokoro@google.com>
src/base/intmath.test.cc
src/base/sat_counter.test.cc