! Test for a bad nmsf file. This is NOT a stand-alone test, it is run in a
! secondary shell as prompted by %test_shell
!
! Author:  J. Czechowski IV
! Version: $Id: test_shell_bad_nmsf.mm,v 1.3 2009/06/04 21:23:57 ntn Exp $
!
startmacro
  FNAME input AREA="test" NAME="nmsf_bad" EXT="msf" OPT="SYS"
  set    output "^{env.msf}.msf"

  say ""
  say ""
  say "To test this:"
  say " (1) Exit the NeXtMidas shell."
  say "       exit"
  say " (2) Copy ^{input} to ^output"
  if env.ostype eqs "DOS" then
    say "       copy ^input ^output"
  else
    say "       cp ^input ^output"
  endif
  say " (3) Type nm to try and go back into the shell"
  if env.ostype neqs "OSTYPE" then
    say "       nm"
  endif
  say " (4) As you try to go back into the NeXtMidas shell you should get WARN"
  say "     messages that state:"
  say "     'Error loading state: ...' and"
  say "     'Restarting NeXtMidas session.'"
  say "     If you see the WARN messages, followed by the normal nmstartup, click"
  say "     PASS in the %TEST_SHELL window, otherwise click FAIL."
  say " (5) Close this NeXtMidas shell."
  say "       nmend"
  say ""
  say ""
endmacro
