Loading isis/src/base/apps/spiceinit/tsts/isis2/Makefile 0 → 100644 +13 −0 Original line number Diff line number Diff line # run spice init with default parameters only APPNAME = spiceinit include $(ISISROOT)/make/isismake.tsts commands: # TEST A: Check that an isis2 cube fails to be read echo -e "Test Spiceinit with an isis2 cube:" > $(OUTPUT)/error_message.txt; if [ `$(APPNAME) \ from=$(INPUT)/isis2Truth.cub \ 2>> $(OUTPUT)/error_message.txt > /dev/null` ]; \ then true; \ fi; No newline at end of file isis/src/base/objs/Cube/Cube.cpp +2 −2 Original line number Diff line number Diff line Loading @@ -1972,9 +1972,9 @@ namespace Isis { reformatOldIsisLabel(m_labelFileName->expanded()); } else { QString msg = "Can not open [" + m_labelFileName->original() + "]" " because it is an ISIS2 cube."; cleanUp(false); QString msg = "Can not open old cube file format with write access [" + m_labelFileName->original() + "]"; throw IException(IException::Io, msg, _FILEINFO_); } } Loading Loading
isis/src/base/apps/spiceinit/tsts/isis2/Makefile 0 → 100644 +13 −0 Original line number Diff line number Diff line # run spice init with default parameters only APPNAME = spiceinit include $(ISISROOT)/make/isismake.tsts commands: # TEST A: Check that an isis2 cube fails to be read echo -e "Test Spiceinit with an isis2 cube:" > $(OUTPUT)/error_message.txt; if [ `$(APPNAME) \ from=$(INPUT)/isis2Truth.cub \ 2>> $(OUTPUT)/error_message.txt > /dev/null` ]; \ then true; \ fi; No newline at end of file
isis/src/base/objs/Cube/Cube.cpp +2 −2 Original line number Diff line number Diff line Loading @@ -1972,9 +1972,9 @@ namespace Isis { reformatOldIsisLabel(m_labelFileName->expanded()); } else { QString msg = "Can not open [" + m_labelFileName->original() + "]" " because it is an ISIS2 cube."; cleanUp(false); QString msg = "Can not open old cube file format with write access [" + m_labelFileName->original() + "]"; throw IException(IException::Io, msg, _FILEINFO_); } } Loading