diff options
author | Gun Kim <gune.kim@samsung.com> | 2013-06-28 17:25:11 +0900 |
---|---|---|
committer | Gun Kim <gune.kim@samsung.com> | 2013-06-28 17:26:33 +0900 |
commit | b3e46ad49ef7921cf3e42f0786e58b31bf616dcd (patch) | |
tree | e49f79083240ecb64e13a5b951f55f27928d36ac | |
parent | 18148da40e53ac377bf4f4744f3f9573c0e5c61f (diff) | |
download | codecoverage-eplugin-b3e46ad49ef7921cf3e42f0786e58b31bf616dcd.tar.gz codecoverage-eplugin-b3e46ad49ef7921cf3e42f0786e58b31bf616dcd.tar.bz2 codecoverage-eplugin-b3e46ad49ef7921cf3e42f0786e58b31bf616dcd.zip |
[Title] fixed code coverage result is not shown on windows.
[Type]
[Module]
[Priority]
[Jira#]
[Redmine#]
[Problem]
[Cause]
[Solution]
[TestCase]
-rw-r--r-- | org.tizen.codecoverage/src/org/tizen/codecoverage/helper/GcovHelper.java | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/org.tizen.codecoverage/src/org/tizen/codecoverage/helper/GcovHelper.java b/org.tizen.codecoverage/src/org/tizen/codecoverage/helper/GcovHelper.java index 9ce0dac..9283028 100644 --- a/org.tizen.codecoverage/src/org/tizen/codecoverage/helper/GcovHelper.java +++ b/org.tizen.codecoverage/src/org/tizen/codecoverage/helper/GcovHelper.java @@ -141,6 +141,23 @@ public class GcovHelper { for (String gcdaPath: gcdaPathsInGcno) { dstFile = new Path(gcdaPath).removeLastSegments(1).toString(); srcFile = targetPath + gcdaPath; + + srcFile = srcFile.replaceAll("//", "/"); + srcFile = srcFile.replaceAll("/", "'/'"); + int startPos = 0; + int endPos = srcFile.length(); + if ( srcFile.startsWith("'/") ) { + startPos += 1; + } + if ( srcFile.endsWith("/'") ) { + endPos -= 1; + } + else { + srcFile += "'"; + endPos += 1; + } + + srcFile = srcFile.substring(startPos, endPos); SyncResult syncSuccess = syncService.pull( currentDevice.getFileEntry( srcFile ), dstFile); if (syncSuccess.getCode() != RESULT_OK) { |