comp.lang.idl-pvwave archive
Messages from Usenet group comp.lang.idl-pvwave, compiled by Paulo Penteado

Home » Public Forums » archive » programmatically detect problems in idl code
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Switch to threaded view of this topic Create a new topic Submit Reply
programmatically detect problems in idl code [message #45094] Mon, 01 August 2005 08:02
Mathieu Malaterre is currently offline  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
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Re: memory leak with HDF5?
Next Topic: Installing IDL 6.1 on debian linux 2

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ] [ PDF ]

Current Time: Wed Oct 08 13:54:27 PDT 2025

Total time taken to generate the page: 0.00365 seconds