Project Home
Project Home
Documents
Documents
Wiki
Wiki
Discussion Forums
Discussions
Project Information
Project Info
Forum Topic - Tcl problem on QNX: (3 Items)
   
Tcl problem on QNX  
Our product has a Tcl test suite, which tests every part of the whole
product. But when ported to QNX6.3.2, some of the Tcl tests failed,
mostly because some files are not created when they should have been
created.  
The test machine is a PC (X86), stable storage is IDE disk.
So I am wondering if there is any limitations about QNX's file system, for
example the file size, path length, or something. And also, is there any limitation or bugs about Tcl on QNX?  Because 
the tcl test could not create some files under a specified directory.

Thanks.
RE: Tcl problem on QNX  
 

> -----Original Message-----
> From: David Zhao [mailto:david.zhao@oracle.com] 
> Sent: November 4, 2007 10:16 PM
> To: ostech-core_os
> Subject: Tcl problem on QNX
> 
> Our product has a Tcl test suite, which tests every part of 
> the whole product. But when ported to QNX6.3.2, some of the 
> Tcl tests failed, mostly because some files are not created 
> when they should have been created.  
> The test machine is a PC (X86), stable storage is IDE disk.
> So I am wondering if there is any limitations about QNX's 
> file system, for example the file size, path length, or 
> something. And also, is there any limitation or bugs about 
> Tcl on QNX?  Because the tcl test could not create some files 
> under a specified directory.

It could be that the tests are attempting to do something with
the temp directory and if your temp directory points to /dev/shmem
then you will end up with some broken results.  Since /dev/shmem
is not a complete filesystem, it is a repository for shared objects
to live, some things like mkdir() will not work.

If you set your temp directory to be a real filesystem (such as
QNX4) then you shouldn't have any problems, although all of the 
filesytems have limits of some sorts.  The limits are doced along
with the filesystems in the Utilities guide and also in the System
Architecture book.

I don't know if this what you are running into, but it is easy for
it to happen since the default /tmp location points to /dev/shmem.

Hope this helps, 
 Thomas
Re: RE: Tcl problem on QNX  
Thanks for your reply.
The directory is not /dev/shmem, it is created on a regular file system,
which contains regular files and directories. I didn't use the /tmp directory.
Also, some files can be created in that directory according to the Tcl
test result.

I will have a look at the documentation to find anything useful.
And tell me if you have further ideas. 

Thanks.