Split out //aos/common:queue_testutils and rename stuff

It had three independent pieces of functionality, one of which had a
pretty bad name.

Change-Id: I4a6937692fa36e74f814b3be4d4c5bc751947088
diff --git a/aos/testing/prevent_exit.cc b/aos/testing/prevent_exit.cc
new file mode 100644
index 0000000..93d7c58
--- /dev/null
+++ b/aos/testing/prevent_exit.cc
@@ -0,0 +1,23 @@
+#include "aos/testing/prevent_exit.h"
+
+#include <stdlib.h>
+#include <unistd.h>
+
+#include "aos/common/logging/logging.h"
+
+namespace aos {
+namespace testing {
+namespace {
+
+void TerminateExitHandler() {
+  _exit(EXIT_SUCCESS);
+}
+
+}  // namespace
+
+void PreventExit() {
+  CHECK_EQ(atexit(TerminateExitHandler), 0);
+}
+
+}  // namespace testing
+}  // namespace aos