diff options
author | ancarola <raffaele.ancarola@epfl.ch> | 2019-01-27 01:08:50 +0100 |
---|---|---|
committer | ancarola <raffaele.ancarola@epfl.ch> | 2019-01-27 01:08:50 +0100 |
commit | 136e37c0e99092798b95a54c1cd22ae0d9ce2f39 (patch) | |
tree | 5979668d618ca5c8480d98800fe88bfb8b36e6d1 /test | |
parent | Merge remote-tracking branch 'raffa/master' (diff) | |
download | flatland-136e37c0e99092798b95a54c1cd22ae0d9ce2f39.tar.gz flatland-136e37c0e99092798b95a54c1cd22ae0d9ce2f39.zip |
Debug signals attempted
Diffstat (limited to 'test')
-rw-r--r-- | test/signal_test.cpp | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/test/signal_test.cpp b/test/signal_test.cpp index db5b571..76ab35b 100644 --- a/test/signal_test.cpp +++ b/test/signal_test.cpp @@ -5,7 +5,7 @@ #include "flatland.hpp" #include "exceptions/forcequit.hpp" -#include <iostream> +#include "debug.hpp" using namespace std; using namespace flat; @@ -70,7 +70,7 @@ void lifeloop() if (!(steps % 40)) m_sender->send(); - if (++steps > 2000) + if (++steps > 200) { signal quit(0, "quit"); @@ -78,7 +78,7 @@ void lifeloop() flat::core_channel().emit(quit); } - if (steps > 2100) + if (steps > 205) throw flat::ForceQuit("Too many steps"); } @@ -107,8 +107,13 @@ int main() init_flatland(&win, status, 60); + npdebug("Deleting m_sender") delete m_sender; + + npdebug("Deleting m_listener") delete m_listener; + npdebug("Exiting") + return 0; } |