10ac77ac8e915bff1a863e371f9b363033f9cf759Elliott Hughes/* 20ac77ac8e915bff1a863e371f9b363033f9cf759Elliott Hughes * Copyright (C) 2011 The Android Open Source Project 30ac77ac8e915bff1a863e371f9b363033f9cf759Elliott Hughes * 40ac77ac8e915bff1a863e371f9b363033f9cf759Elliott Hughes * Licensed under the Apache License, Version 2.0 (the "License"); 50ac77ac8e915bff1a863e371f9b363033f9cf759Elliott Hughes * you may not use this file except in compliance with the License. 60ac77ac8e915bff1a863e371f9b363033f9cf759Elliott Hughes * You may obtain a copy of the License at 70ac77ac8e915bff1a863e371f9b363033f9cf759Elliott Hughes * 80ac77ac8e915bff1a863e371f9b363033f9cf759Elliott Hughes * http://www.apache.org/licenses/LICENSE-2.0 90ac77ac8e915bff1a863e371f9b363033f9cf759Elliott Hughes * 100ac77ac8e915bff1a863e371f9b363033f9cf759Elliott Hughes * Unless required by applicable law or agreed to in writing, software 110ac77ac8e915bff1a863e371f9b363033f9cf759Elliott Hughes * distributed under the License is distributed on an "AS IS" BASIS, 120ac77ac8e915bff1a863e371f9b363033f9cf759Elliott Hughes * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 130ac77ac8e915bff1a863e371f9b363033f9cf759Elliott Hughes * See the License for the specific language governing permissions and 140ac77ac8e915bff1a863e371f9b363033f9cf759Elliott Hughes * limitations under the License. 150ac77ac8e915bff1a863e371f9b363033f9cf759Elliott Hughes */ 160ac77ac8e915bff1a863e371f9b363033f9cf759Elliott Hughes 170ac77ac8e915bff1a863e371f9b363033f9cf759Elliott Hughespackage libcore.java.io; 180ac77ac8e915bff1a863e371f9b363033f9cf759Elliott Hughes 190ac77ac8e915bff1a863e371f9b363033f9cf759Elliott Hughesimport java.io.File; 200ac77ac8e915bff1a863e371f9b363033f9cf759Elliott Hughesimport java.io.FileNotFoundException; 210ac77ac8e915bff1a863e371f9b363033f9cf759Elliott Hughesimport java.io.IOException; 220ac77ac8e915bff1a863e371f9b363033f9cf759Elliott Hughesimport java.io.RandomAccessFile; 230ac77ac8e915bff1a863e371f9b363033f9cf759Elliott Hughesimport junit.framework.TestCase; 240ac77ac8e915bff1a863e371f9b363033f9cf759Elliott Hughes 250ac77ac8e915bff1a863e371f9b363033f9cf759Elliott Hughespublic class FileDescriptorTest extends TestCase { 260ac77ac8e915bff1a863e371f9b363033f9cf759Elliott Hughes public void testReadOnlyFileDescriptorSync() throws Exception { 270ac77ac8e915bff1a863e371f9b363033f9cf759Elliott Hughes File f= File.createTempFile("FileDescriptorTest", "tmp"); 280ac77ac8e915bff1a863e371f9b363033f9cf759Elliott Hughes new RandomAccessFile(f, "r").getFD().sync(); 290ac77ac8e915bff1a863e371f9b363033f9cf759Elliott Hughes } 300ac77ac8e915bff1a863e371f9b363033f9cf759Elliott Hughes} 31