diff --git a/library/src/interactor_impl.cxx b/library/src/interactor_impl.cxx index 972ae70f42..24415d63a0 100644 --- a/library/src/interactor_impl.cxx +++ b/library/src/interactor_impl.cxx @@ -770,7 +770,8 @@ interactor& interactor_impl::initCommands() { if (args.size() < 2) { - throw interactor_impl::invalid_args_exception("alias command requires at least 2 arguments"); + throw interactor_impl::invalid_args_exception( + "alias command requires at least 2 arguments"); } // Validate the alias arguments diff --git a/library/testing/TestSDKInteractorCommand.cxx b/library/testing/TestSDKInteractorCommand.cxx index b6893d741a..4a015763f0 100644 --- a/library/testing/TestSDKInteractorCommand.cxx +++ b/library/testing/TestSDKInteractorCommand.cxx @@ -38,7 +38,14 @@ int TestSDKInteractorCommand(int argc, char* argv[]) inter.triggerCommand("alias axis_off set ui.axis off"); inter.triggerCommand("axis_off"); test("triggerCommand alias resolve", options.ui.axis == false); - + + bool result = inter.triggerCommand("alias axis_off"); + test("triggerCommand alias invalid args", result == false); + + inter.triggerCommand("alias recursive_alias recursive_alias"); + bool result = inter.triggerCommand("recursive_alias"); + test("triggerCommand alias recursion handling", result == false); + // triggerCommand error codepaths test("triggerCommand toggle incompatible", inter.triggerCommand("toggle scene.animation.index") == false);