[nemiver/better-variable-format: 6/9] 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: 6/9] Fix tests that got broken a while ago
- Date: Sun, 12 Sep 2010 18:08:32 +0000 (UTC)
commit a278ccae1c0c09bca548f7ea69f0649306c993f9
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 6a3d65c..59f798b 100644
--- a/tests/test-breakpoint.cc
+++ b/tests/test-breakpoint.cc
@@ -113,12 +113,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 ccb7c8d..f456295 100644
--- a/tests/test-types.cc
+++ b/tests/test-types.cc
@@ -44,7 +44,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]