< prev index next >

test/com/sun/management/OperatingSystemMXBean/TestTotalSwap.java

Print this page
rev 16783 : 8176176: fix @modules in jdk_svc tests
Reviewed-by: duke


   8  *
   9  * This code is distributed in the hope that it will be useful, but WITHOUT
  10  * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
  11  * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
  12  * version 2 for more details (a copy is included in the LICENSE file that
  13  * accompanied this code).
  14  *
  15  * You should have received a copy of the GNU General Public License version
  16  * 2 along with this work; if not, write to the Free Software Foundation,
  17  * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
  18  *
  19  * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
  20  * or visit www.oracle.com if you need additional information or have any
  21  * questions.
  22  */
  23 
  24 /*
  25  * @test
  26  * @bug     4858522
  27  * @summary Basic unit test of OperatingSystemMXBean.getTotalSwapSpaceSize()


  28  *
  29  * @library /lib/testlibrary
  30  * @modules jdk.management
  31  * @build TestTotalSwap jdk.testlibrary.*
  32  * @run main TestTotalSwap
  33  *
  34  * @author  Steve Bohne
  35  * @author  Jaroslav Bachorik
  36  */
  37 
  38 /*
  39  * This test tests the actual swap size on linux and solaris.
  40  * The correct value should be checked manually:
  41  * Solaris:
  42  *   1. In a shell, enter the command: "swap -l"
  43  *   2. The value (reported in blocks) is in the "blocks" column.
  44  * Linux:
  45  *   1. In a shell, enter the command: "cat /proc/meminfo"
  46  *   2. The value (reported in bytes) is in "Swap" entry, "total" column.
  47  * Windows NT/XP/2000:
  48  *   1. Run Start->Accessories->System Tools->System Information.
  49  *   2. The value (reported in Kbytes) is in the "Page File Space" entry
  50  * Windows 98/ME:
  51  *   Unknown.
  52  *
  53  * Usage: GetTotalSwapSpaceSize <expected swap size | "sanity-only"> [trace]
  54  */
  55 




   8  *
   9  * This code is distributed in the hope that it will be useful, but WITHOUT
  10  * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
  11  * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
  12  * version 2 for more details (a copy is included in the LICENSE file that
  13  * accompanied this code).
  14  *
  15  * You should have received a copy of the GNU General Public License version
  16  * 2 along with this work; if not, write to the Free Software Foundation,
  17  * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
  18  *
  19  * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
  20  * or visit www.oracle.com if you need additional information or have any
  21  * questions.
  22  */
  23 
  24 /*
  25  * @test
  26  * @bug     4858522
  27  * @summary Basic unit test of OperatingSystemMXBean.getTotalSwapSpaceSize()
  28  * @author  Steve Bohne
  29  * @author  Jaroslav Bachorik
  30  *
  31  * @library /lib/testlibrary
  32  *
  33  * @build TestTotalSwap jdk.testlibrary.*
  34  * @run main TestTotalSwap



  35  */
  36 
  37 /*
  38  * This test tests the actual swap size on linux and solaris.
  39  * The correct value should be checked manually:
  40  * Solaris:
  41  *   1. In a shell, enter the command: "swap -l"
  42  *   2. The value (reported in blocks) is in the "blocks" column.
  43  * Linux:
  44  *   1. In a shell, enter the command: "cat /proc/meminfo"
  45  *   2. The value (reported in bytes) is in "Swap" entry, "total" column.
  46  * Windows NT/XP/2000:
  47  *   1. Run Start->Accessories->System Tools->System Information.
  48  *   2. The value (reported in Kbytes) is in the "Page File Space" entry
  49  * Windows 98/ME:
  50  *   Unknown.
  51  *
  52  * Usage: GetTotalSwapSpaceSize <expected swap size | "sanity-only"> [trace]
  53  */
  54 


< prev index next >