projects
/
pulseview.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
fix PulseView compilation with ENABLE_DECODE set to OFF
[pulseview.git]
/
test
/
data
/
logicsegment.cpp
diff --git
a/test/data/logicsegment.cpp
b/test/data/logicsegment.cpp
index fabcbd404ddb06a5a2703ad838507c890f6d607f..b5cf0ba45c85adad2b36b2a96870e34db5f75ae2 100644
(file)
--- a/
test/data/logicsegment.cpp
+++ b/
test/data/logicsegment.cpp
@@
-14,20
+14,21
@@
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
- * along with this program; if not, write to the Free Software
- * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
+ * along with this program; if not, see <http://www.gnu.org/licenses/>.
*/
#include <extdef.h>
*/
#include <extdef.h>
-#include <
stdint.h
>
+#include <
cstdint
>
#include <boost/test/unit_test.hpp>
#include <pv/data/logicsegment.hpp>
#include <boost/test/unit_test.hpp>
#include <pv/data/logicsegment.hpp>
+#if 0
using pv::data::LogicSegment;
using std::vector;
using pv::data::LogicSegment;
using std::vector;
+#endif
// Dummy, remove again when unit tests are fixed.
BOOST_AUTO_TEST_SUITE(DummyTestSuite)
// Dummy, remove again when unit tests are fixed.
BOOST_AUTO_TEST_SUITE(DummyTestSuite)
@@
-421,7
+422,7
@@
BOOST_AUTO_TEST_CASE(LongPulses)
BOOST_CHECK_EQUAL(edges[0].second, true);
BOOST_CHECK_EQUAL(edges[1].first, 16);
BOOST_CHECK_EQUAL(edges[1].second, false);
BOOST_CHECK_EQUAL(edges[0].second, true);
BOOST_CHECK_EQUAL(edges[1].first, 16);
BOOST_CHECK_EQUAL(edges[1].second, false);
-
+
for (int i = 1; i < Cycles; i++) {
BOOST_CHECK_EQUAL(edges[i+1].first, i * Period);
BOOST_CHECK_EQUAL(edges[i+1].second, false);
for (int i = 1; i < Cycles; i++) {
BOOST_CHECK_EQUAL(edges[i+1].first, i * Period);
BOOST_CHECK_EQUAL(edges[i+1].second, false);