summaryrefslogtreecommitdiff
path: root/cesar/lib
diff options
context:
space:
mode:
authorNicolas Schodet2010-11-09 17:58:37 +0100
committerNicolas Schodet2010-11-12 10:32:34 +0100
commitae76a033db29298c5355bc6f59005f42ff18b01d (patch)
tree8489755ba28e23ccedcf630b043091bcca5815b2 /cesar/lib
parent88024d4693650f644226c88e52b6cfd7b3f6f458 (diff)
cesar/lib/test/try: use volatile to be protected from longjmp
Diffstat (limited to 'cesar/lib')
-rw-r--r--cesar/lib/test/try/src/test_try.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/cesar/lib/test/try/src/test_try.c b/cesar/lib/test/try/src/test_try.c
index 86a843da5b..67588e7552 100644
--- a/cesar/lib/test/try/src/test_try.c
+++ b/cesar/lib/test/try/src/test_try.c
@@ -21,7 +21,7 @@ try_basic_test_case (test_t t)
test_case_begin (t, "basic");
test_begin (t, "no throw")
{
- bool always = false;
+ volatile bool always = false;
try_begin
{
}
@@ -46,8 +46,8 @@ try_basic_test_case (test_t t)
} test_end;
test_begin (t, "throw catch")
{
- bool caught = false;
- bool always = false;
+ volatile bool caught = false;
+ volatile bool always = false;
try_begin
{
try_throw (100);
@@ -77,7 +77,7 @@ try_basic_test_case (test_t t)
} test_end;
test_begin (t, "throw again")
{
- int pass = 3;
+ volatile int pass = 3;
try_begin
{
try_begin