File: inserttest_a.crm

package info (click to toggle)
crm114 20060704a-5
  • links: PTS
  • area: main
  • in suites: etch, etch-m68k
  • size: 1,848 kB
  • ctags: 630
  • sloc: ansic: 17,713; sh: 536; makefile: 351; lisp: 208
file content (22 lines) | stat: -rwxr-xr-x 608 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
#! /usr/bin/crm
window
output /\nStart of insert processor testing \n/
output / start here .../
insert inserttest_b.crm
output / and the last bit of normal text \n/
output /now we test nonexistent file overrides \n/
output /this should not cause a FATAL ERROR, because we trap it.\n/
{
    {	
	insert there_is_no_such_file_as_this.txt
    }	
    output /You should never see this text/
    #		
    trap (:my_fault:) /.*/
    {
	output /We caught the nonexistent file fault here.  Message was:\n <<start of msg>>\n:*:my_fault:\n <<end of msg>> \nvia the TRAP\n/
    }
}
output /End of insert testing. \n\n/