Return-Path: X-Original-To: apmail-cloudstack-issues-archive@www.apache.org Delivered-To: apmail-cloudstack-issues-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id A0AC2195AE for ; Sat, 16 Apr 2016 19:06:26 +0000 (UTC) Received: (qmail 16701 invoked by uid 500); 16 Apr 2016 19:06:25 -0000 Delivered-To: apmail-cloudstack-issues-archive@cloudstack.apache.org Received: (qmail 16655 invoked by uid 500); 16 Apr 2016 19:06:25 -0000 Mailing-List: contact issues-help@cloudstack.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@cloudstack.apache.org Delivered-To: mailing list issues@cloudstack.apache.org Received: (qmail 16641 invoked by uid 500); 16 Apr 2016 19:06:25 -0000 Delivered-To: apmail-incubator-cloudstack-issues@incubator.apache.org Received: (qmail 16638 invoked by uid 99); 16 Apr 2016 19:06:25 -0000 Received: from arcas.apache.org (HELO arcas) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 16 Apr 2016 19:06:25 +0000 Received: from arcas.apache.org (localhost [127.0.0.1]) by arcas (Postfix) with ESMTP id 8DBBC2C1F4E for ; Sat, 16 Apr 2016 19:06:25 +0000 (UTC) Date: Sat, 16 Apr 2016 19:06:25 +0000 (UTC) From: =?utf-8?Q?Gabriel_Beims_Br=C3=A4scher_=28JIRA=29?= To: cloudstack-issues@incubator.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Created] (CLOUDSTACK-9352) Test fails in Widows as the file separator "/" is different from "\" MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 Gabriel Beims Br=C3=A4scher created CLOUDSTACK-9352: -------------------------------------------------- Summary: Test fails in Widows as the file separator "/" is dif= ferent from "\" Key: CLOUDSTACK-9352 URL: https://issues.apache.org/jira/browse/CLOUDSTACK-9352 Project: CloudStack Issue Type: Test Security Level: Public (Anyone can view this level - this is the defa= ult.) Reporter: Gabriel Beims Br=C3=A4scher Priority: Minor Test com.cloud.utils.SwiftUtilTest.testSplitSwiftPath() fails in Widows as = the file separator "/" is different from "\" Problem: File separator in windows ("\") is different from the expected in the test = ("/"); thus, the test com.cloud.utils.SwiftUtilTest.testSplitSwiftPath() wi= ll fail in Windows systems. The problem is that the input of the test is "container/object" but the tes= ted method uses the File.separator (that depends on from the OS), in the wi= ndows the tested method (com.cloud.utils.SwiftUtil.splitSwiftPath(String)) = looks for a "\", as the string does not contain "\" it returns an empty str= ing and consequently results in a test failure. Solution: Create a string String input =3D "container" + File.separator + "object= "; (before it was String input =3D "container/object";); thus, independent = of the OS, the test will validate the tested method in a manner that the fi= le separator does not disturb the result; -- This message was sent by Atlassian JIRA (v6.3.4#6332)