changeset 255:11ac31a1dc0c

DIO-4: api/jdk/dio/DeviceManager/openpc1/index.html#GPortTests_gport0 failure Summary: Invalid condition at close_pins_in_list method Reviewed-by: alkonsta
author snazarki
date Mon, 28 Sep 2015 19:41:55 +0300
parents ddc484c7916a
children 5199bf1a0754
files Makefile src/share/linux/native/com/oracle/dio/gpio/gpio.c
diffstat 2 files changed, 2 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/Makefile	Mon Sep 28 19:35:24 2015 +0300
+++ b/Makefile	Mon Sep 28 19:41:55 2015 +0300
@@ -1,3 +1,4 @@
+
 #########################################################################
 # Copyright (c) 2014, 2015, Oracle and/or its affiliates. All rights reserved.
 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
--- a/src/share/linux/native/com/oracle/dio/gpio/gpio.c	Mon Sep 28 19:35:24 2015 +0300
+++ b/src/share/linux/native/com/oracle/dio/gpio/gpio.c	Mon Sep 28 19:41:55 2015 +0300
@@ -842,7 +842,7 @@
             JAVACALL_REPORT_ERROR(JC_DIO, "Invalid handle of GPIO port was passed to close function. Operation aborted");
             return JAVACALL_DIO_FAIL;
         }
-        if (JAVACALL_FAIL == listOperationsResult) {
+        if (JAVACALL_FAIL != listOperationsResult) {
             javacall_gpio_pin_close(pin);
         } else {
             JAVACALL_REPORT_ERROR(JC_DIO, "Unknown error retrieving GPIO port handle. Operation aborted");