t_plat.py revision 3177
1N/A# The contents of this file are subject to the terms of the 1N/A# Common Development and Distribution License (the "License"). 1N/A# You may not use this file except in compliance with the License. 1N/A# See the License for the specific language governing permissions 1N/A# and limitations under the License. 1N/A# When distributing Covered Code, include this CDDL HEADER in each 1N/A# If applicable, add the following below this CDDL HEADER, with the 1N/A# fields enclosed by brackets "[]" replaced with your own identifying 1N/A# information: Portions Copyright [yyyy] [name of copyright owner] 1N/A# Copyright (c) 2010, 2015, Oracle and/or its affiliates. All rights reserved. 1N/A # make sure it can be used in an fmri 1N/A # rename a file on top of another file which already exists 1N/A # create an image, copy an executable into it, 1N/A # run the executable, replace the executable 1N/A # Make sure that the moved executable gets deleted 1N/A # This is a white-box test 1N/A # To simulate running another process, we delete the cache 1N/A # and call get_trashdir as if another file was being moved 1N/A # create an image, copy an executable into it, 1N/A # run the executable, remove the executable 1N/A # Make sure that the moved executable gets deleted 1N/A # This is a white-box test 1N/A # To simulate running another process, we delete the cache 1N/A # and call get_trashdir as if another file was being moved