Crash-test tester
This commit is contained in:
parent
a38c1cd1f1
commit
c33b40bb7f
|
@ -237,6 +237,9 @@ namespace ARDOUR { namespace LuaAPI {
|
|||
*/
|
||||
bool wait_for_process_callback (size_t n_cycles, int64_t timeout_ms);
|
||||
|
||||
/** Crash Test Dummy */
|
||||
void segfault ();
|
||||
|
||||
class Vamp {
|
||||
/** Vamp Plugin Interface
|
||||
*
|
||||
|
|
|
@ -466,6 +466,13 @@ ARDOUR::LuaAPI::wait_for_process_callback (size_t n_cycles, int64_t timeout_ms)
|
|||
return true;
|
||||
}
|
||||
|
||||
void
|
||||
ARDOUR::LuaAPI::segfault ()
|
||||
{
|
||||
int* p = NULL;
|
||||
*p = 0;
|
||||
}
|
||||
|
||||
int
|
||||
ARDOUR::LuaOSC::Address::send (lua_State *L)
|
||||
{
|
||||
|
|
|
@ -2577,6 +2577,7 @@ LuaBindings::common (lua_State* L)
|
|||
.addCFunction ("sample_to_timecode", ARDOUR::LuaAPI::sample_to_timecode)
|
||||
.addCFunction ("timecode_to_sample", ARDOUR::LuaAPI::timecode_to_sample)
|
||||
.addFunction ("wait_for_process_callback", ARDOUR::LuaAPI::wait_for_process_callback)
|
||||
.addFunction ("segfault", ARDOUR::LuaAPI::segfault)
|
||||
|
||||
.beginNamespace ("FileTest")
|
||||
.addConst ("IsRegular", Glib::FILE_TEST_IS_REGULAR)
|
||||
|
|
Loading…
Reference in New Issue
Block a user