Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
K
KWSys
Manage
Activity
Members
Labels
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Utils
KWSys
Commits
ce55a255
Commit
ce55a255
authored
7 years ago
by
Matthias Männich
Browse files
Options
Downloads
Patches
Plain Diff
testSystemTools: fix some copy'n'paste issues
parent
73c491e8
No related branches found
No related tags found
1 merge request
!54
Minor fixes for ProcessUNIX and SystemInformation
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
testSystemTools.cxx
+5
-5
5 additions, 5 deletions
testSystemTools.cxx
with
5 additions
and
5 deletions
testSystemTools.cxx
+
5
−
5
View file @
ce55a255
...
@@ -254,22 +254,22 @@ static bool CheckFileOperations()
...
@@ -254,22 +254,22 @@ static bool CheckFileOperations()
}
}
// should work, was created as new file before
// should work, was created as new file before
if
(
!
kwsys
::
SystemTools
::
FileExists
(
testNewFile
))
{
if
(
!
kwsys
::
SystemTools
::
FileExists
(
testNewFile
))
{
std
::
cerr
<<
"Problem with FileExists for: "
<<
testNew
Dir
<<
std
::
endl
;
std
::
cerr
<<
"Problem with FileExists for: "
<<
testNew
File
<<
std
::
endl
;
res
=
false
;
res
=
false
;
}
}
if
(
!
kwsys
::
SystemTools
::
FileExists
(
testNewFile
.
c_str
()))
{
if
(
!
kwsys
::
SystemTools
::
FileExists
(
testNewFile
.
c_str
()))
{
std
::
cerr
<<
"Problem with FileExists as C string for: "
<<
testNew
Dir
std
::
cerr
<<
"Problem with FileExists as C string for: "
<<
testNew
File
<<
std
::
endl
;
<<
std
::
endl
;
res
=
false
;
res
=
false
;
}
}
if
(
!
kwsys
::
SystemTools
::
FileExists
(
testNewFile
,
true
))
{
if
(
!
kwsys
::
SystemTools
::
FileExists
(
testNewFile
,
true
))
{
std
::
cerr
<<
"Problem with FileExists as file for: "
<<
testNew
Dir
std
::
cerr
<<
"Problem with FileExists as file for: "
<<
testNew
File
<<
std
::
endl
;
<<
std
::
endl
;
res
=
false
;
res
=
false
;
}
}
if
(
!
kwsys
::
SystemTools
::
FileExists
(
testNewFile
.
c_str
(),
true
))
{
if
(
!
kwsys
::
SystemTools
::
FileExists
(
testNewFile
.
c_str
(),
true
))
{
std
::
cerr
<<
"Problem with FileExists as C string and file for: "
std
::
cerr
<<
"Problem with FileExists as C string and file for: "
<<
testNew
Dir
<<
std
::
endl
;
<<
testNew
File
<<
std
::
endl
;
res
=
false
;
res
=
false
;
}
}
...
@@ -285,7 +285,7 @@ static bool CheckFileOperations()
...
@@ -285,7 +285,7 @@ static bool CheckFileOperations()
}
}
// should work, was created as new file before
// should work, was created as new file before
if
(
!
kwsys
::
SystemTools
::
PathExists
(
testNewFile
))
{
if
(
!
kwsys
::
SystemTools
::
PathExists
(
testNewFile
))
{
std
::
cerr
<<
"Problem with PathExists for: "
<<
testNew
Dir
<<
std
::
endl
;
std
::
cerr
<<
"Problem with PathExists for: "
<<
testNew
File
<<
std
::
endl
;
res
=
false
;
res
=
false
;
}
}
...
...
This diff is collapsed.
Click to expand it.
Brad King
@brad.king
mentioned in commit
8416b563
·
7 years ago
mentioned in commit
8416b563
mentioned in commit 8416b56358a6944e55778070596fb426f32d6bb8
Toggle commit list
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment