Skip to content

Commit 0892913

Browse files
author
Brian Burkhalter
committed
8351086: (fc) Make java/nio/channels/FileChannel/BlockDeviceSize.java test manual
Reviewed-by: msheppar
1 parent 93f2260 commit 0892913

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

test/jdk/java/nio/channels/FileChannel/BlockDeviceSize.java

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (c) 2014, 2024, Oracle and/or its affiliates. All rights reserved.
2+
* Copyright (c) 2014, 2025, Oracle and/or its affiliates. All rights reserved.
33
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
44
*
55
* This code is free software; you can redistribute it and/or modify it
@@ -25,7 +25,10 @@
2525
* @bug 8054029 8313368
2626
* @requires (os.family == "linux")
2727
* @summary FileChannel.size() should be equal to RandomAccessFile.size() and > 0 for block devs on Linux
28+
* @comment The test must be launched with sudo or the block devices listed in
29+
* the BLK_FNAMES array must be readable by the user running the test.
2830
* @library /test/lib
31+
* @run main/manual BlockDeviceSize
2932
*/
3033

3134
import java.io.RandomAccessFile;

0 commit comments

Comments
 (0)