< prev index next >

test/jdk/jdk/jfr/event/runtime/TestNetworkUtilizationEvent.java

Print this page
rev 59383 : [mq]: final

*** 1,7 **** /* ! * Copyright (c) 2018, Oracle and/or its affiliates. All rights reserved. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * This code is free software; you can redistribute it and/or modify it * under the terms of the GNU General Public License version 2 only, as * published by the Free Software Foundation. Oracle designates this --- 1,7 ---- /* ! * Copyright (c) 2018, 2020, Oracle and/or its affiliates. All rights reserved. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * This code is free software; you can redistribute it and/or modify it * under the terms of the GNU General Public License version 2 only, as * published by the Free Software Foundation. Oracle designates this
*** 88,99 **** if (event.getLong("writeRate") > 0) { networkInterfaces.add(event.getString("networkInterface")); } } ! if (Platform.isWindows() || Platform.isSolaris()) { ! // Windows and Solaris do not track statistics for the loopback // interface Asserts.assertGreaterThanOrEqual(networkInterfaces.size(), 1); } else { Asserts.assertGreaterThanOrEqual(networkInterfaces.size(), 2); } --- 88,99 ---- if (event.getLong("writeRate") > 0) { networkInterfaces.add(event.getString("networkInterface")); } } ! if (Platform.isWindows()) { ! // Windows does not track statistics for the loopback // interface Asserts.assertGreaterThanOrEqual(networkInterfaces.size(), 1); } else { Asserts.assertGreaterThanOrEqual(networkInterfaces.size(), 2); }
< prev index next >