summaryrefslogtreecommitdiff
path: root/examples/ExampleTest.cc
diff options
context:
space:
mode:
authorBent Bisballe Nyeng <deva@aasimon.org>2021-09-28 17:48:33 +0200
committerBent Bisballe Nyeng <deva@aasimon.org>2021-09-28 17:48:33 +0200
commit6df54459f540fa258824658ecd68602c83ccd348 (patch)
tree0318a3278d195f5426412d83d12f99834fc4923c /examples/ExampleTest.cc
parentbc078da645412c6b36ef59e635d6c35d11088c96 (diff)
Experiment for testing if exit() is called without terminating the test program.exit_test
Diffstat (limited to 'examples/ExampleTest.cc')
-rw-r--r--examples/ExampleTest.cc2
1 files changed, 2 insertions, 0 deletions
diff --git a/examples/ExampleTest.cc b/examples/ExampleTest.cc
index aebe712..5b6d788 100644
--- a/examples/ExampleTest.cc
+++ b/examples/ExampleTest.cc
@@ -116,6 +116,8 @@ public:
uASSERT_EQUAL(Speed::B230400, getBaud(230400));
uASSERT_EQUAL(Speed::B230400, getBaud(230401));
+
+ uASSERT_THROWS(exit_called, getBaud(42));
}
void exceptionTests()