Home Corporate Contacts

TETware Knowledgebase


Products
Solutions

Information

Datasheet
Documentation
FAQ
Knowledgebase

Return to Knowledgebase Index

14. Executing a set-UID test case

This information is not applicable to Win32 systems.

Question

When I set the set-UID bit on a test case, it doesn't change the effective user ID when the test case is executed by tcc.

 

Answer

If you specify TET_EXEC_IN_PLACE=false in the execute mode configuration, tcc copies the test case to a temporary directory and executes it from there. The act of copying the test case changes its owner and clears the set-UID bit as well.

If you don't specify TET_EXEC_IN_PLACE its value defaults to false, so the effect is the same.

So, if you want tcc to execute a set-UID test case, you must specify TET_EXEC_IN_PLACE=true in the execute mode configuration file.

If there is some reason why you don't want to execute test cases from the source directory, you can specify an alternate execution directory and have tcc execute them from there.

 

See also

  • "Directory structure'', "Execute mode processing'' and "Configuration variables which modify TETware's operation'' in the TETware Programmers Guide.
  •  
  • "Environment variables'' in the TETware User Guide.


 


Home Contacts Legal Copyright Corporate News

Copyright © The Open Group 1995-2012, All Rights Reserved