------------------------------------------------------------------------------
| 735 | |
| 736 | //------------------------------------------------------------------------------ |
| 737 | int vtkExecutive::CheckAlgorithm(const char* method, vtkInformation* request) |
| 738 | { |
| 739 | if (this->InAlgorithm) |
| 740 | { |
| 741 | if (request) |
| 742 | { |
| 743 | std::ostringstream rqmsg; |
| 744 | request->Print(rqmsg); |
| 745 | vtkErrorMacro(<< method |
| 746 | << " invoked during another request. " |
| 747 | "Returning failure to algorithm " |
| 748 | << this->Algorithm->GetObjectDescription() << " for the recursive request:\n" |
| 749 | << rqmsg.str()); |
| 750 | } |
| 751 | else |
| 752 | { |
| 753 | vtkErrorMacro(<< method |
| 754 | << " invoked during another request. " |
| 755 | "Returning failure to algorithm " |
| 756 | << this->Algorithm->GetObjectDescription() << "."); |
| 757 | } |
| 758 | |
| 759 | // Tests should fail when this happens because there is a bug in |
| 760 | // the code. |
| 761 | if (getenv("DASHBOARD_TEST_FROM_CTEST") || getenv("DART_TEST_FROM_DART")) |
| 762 | { |
| 763 | abort(); |
| 764 | } |
| 765 | return 0; |
| 766 | } |
| 767 | return 1; |
| 768 | } |
| 769 | |
| 770 | //------------------------------------------------------------------------------ |
| 771 | // Look at all inputs and check ABORTED flag. If it is set, return true. |
no test coverage detected