summaryrefslogtreecommitdiffstats
path: root/pts-core/functions/pts-functions_modules.php
diff options
context:
space:
mode:
authorMichael Larabel <michael@phx-laptop.(none)>2008-09-12 20:38:24 -0400
committerMichael Larabel <michael@phx-laptop.(none)>2008-09-12 20:38:24 -0400
commita48a2fae64ac2ec4768e69783058c863164f085e (patch)
tree2a575c7d5b1ef7488a42d1674b4c9bd0bcae0b44 /pts-core/functions/pts-functions_modules.php
parentb958b3ba15e8724be249e2799aa22c61b469a6e3 (diff)
downloadphoronix-test-suite-upstream-a48a2fae64ac2ec4768e69783058c863164f085e.tar.gz
phoronix-test-suite-upstream-a48a2fae64ac2ec4768e69783058c863164f085e.tar.xz
phoronix-test-suite-upstream-a48a2fae64ac2ec4768e69783058c863164f085e.zip
pts-core: Add PTS_EXIT module return type for having the Phoronix Test
Suite stop immediately and prematurely (this should only be used in the event of reaching a fatal bug or other problem)
Diffstat (limited to 'pts-core/functions/pts-functions_modules.php')
-rw-r--r--pts-core/functions/pts-functions_modules.php5
1 files changed, 5 insertions, 0 deletions
diff --git a/pts-core/functions/pts-functions_modules.php b/pts-core/functions/pts-functions_modules.php
index a816fdc..540ba23 100644
--- a/pts-core/functions/pts-functions_modules.php
+++ b/pts-core/functions/pts-functions_modules.php
@@ -24,6 +24,7 @@
// PTS Module Return Types
define("PTS_MODULE_UNLOAD", "PTS_MODULE_UNLOAD");
+define("PTS_EXIT", "PTS_EXIT");
function pts_module_start_process()
{
@@ -173,6 +174,10 @@ function pts_module_process($process)
// Unload the PTS module
unset($GLOBALS["PTS_MODULES"][$module_index]);
break;
+ case PTS_EXIT:
+ // Stop the Phoronix Test Suite immediately
+ pts_exit();
+ break;
}
}
}