Home »
Public Forums »
archive »
programmatically detect problems in idl code
programmatically detect problems in idl code [message #45094] |
Mon, 01 August 2005 08:02 |
Mathieu Malaterre
Messages: 32 Registered: July 2005
|
Member |
|
|
Hello,
I am still working on integrating idl in a custom testing framework.
Now I need to find an equivalent to a 'compilation stage' for idl.
For example this code cannot run, it contains a 'Syntax error':
$ cat broken.pro
print 'Hello World'
Unfortunately idl does not seems to returns with an error when
compiling it:
$ echo broken | idl
print 'Hello World'
^
% Syntax error.
At: /home/mathieu/Projects/FarSight/Testing/broken.pro, Line 1
% End of file encountered before end of program.
At: /home/mathieu/Projects/FarSight/Testing/broken.pro, Line 3
% Compiled module: BROKEN.
% Attempt to call undefined procedure/function: 'BROKEN'.
% Execution halted at: $MAIN$
$ echo $?
0
Is there a way to compile this program so that idl actually return to
the parent process an error occur ?
Thanks
Mathieu
|
|
|
Current Time: Wed Oct 08 13:54:27 PDT 2025
Total time taken to generate the page: 0.00365 seconds