[nemiver/better-variable-format: 3/8] Fix tests that got broken a while ago
- From: Dodji Seketeli <dodji src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [nemiver/better-variable-format: 3/8] Fix tests that got broken a while ago
- Date: Wed, 2 Mar 2011 18:39:48 +0000 (UTC)
commit a882619d276b8f129501145e3d56071246d1aefa
Author: Dodji Seketeli <dodji gnome org>
Date: Sun Sep 12 12:46:34 2010 +0200
Fix tests that got broken a while ago
* tests/test-types.cc (on_variable_value_signal): Update this test
b/c of a change in fooprog.cc
* tests/test-breakpoint.cc (on_stopped_signal): Likewise.
tests/test-breakpoint.cc | 6 ++++--
tests/test-types.cc | 2 +-
2 files changed, 5 insertions(+), 3 deletions(-)
---
diff --git a/tests/test-breakpoint.cc b/tests/test-breakpoint.cc
index f0a19a2..e91f2ef 100644
--- a/tests/test-breakpoint.cc
+++ b/tests/test-breakpoint.cc
@@ -114,12 +114,14 @@ on_stopped_signal (IDebugger::StopReason a_reason,
MESSAGE ("set conditional breakpoint with cond: "
<< good_break_condition
<< "; we expect this breakpoint to be hit");
- a_debugger->set_breakpoint ("fooprog.cc", 83,
+ // So let's set the breakpoin in func4 around the "i =
+ // j" line in the for loop.
+ a_debugger->set_breakpoint ("fooprog.cc", 89,
good_break_condition);
MESSAGE ("set conditional breakpoint with cond: "
<< bad_break_condition
<< "; this one should never be hit");
- a_debugger->set_breakpoint ("fooprog.cc", 83,
+ a_debugger->set_breakpoint ("fooprog.cc", 89,
bad_break_condition);
cond_breakpoint_set = true;
} else {
diff --git a/tests/test-types.cc b/tests/test-types.cc
index 6fe53f2..739a642 100644
--- a/tests/test-types.cc
+++ b/tests/test-types.cc
@@ -45,7 +45,7 @@ on_variable_value_signal (const UString &a_variable_name,
MESSAGE ("name of variable is: " << a_variable_name);
BOOST_REQUIRE (a_variable_name == "i");
MESSAGE ("variable value: " << a_var->value ());
- BOOST_REQUIRE (a_var && a_var->value () == "0");
+ BOOST_REQUIRE (a_var && a_var->value () == "17");
}
void
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]