Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
openSUSE:Leap:15.1:Update
o2scl
o2scl-remove-glob_wrapper-test.patch
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File o2scl-remove-glob_wrapper-test.patch of Package o2scl
From 5a946ee4e0fb02ed595ba8c2c8805f133b2ef2fd Mon Sep 17 00:00:00 2001 From: "Andrew W. Steiner" <awsteiner@mykolab.com> Date: Mon, 22 Oct 2018 10:09:12 -0400 Subject: [PATCH] Removed glob_wrapper() from misc_ts because it isn't platform independent. --- src/base/misc_ts.cpp | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) diff --git a/src/base/misc_ts.cpp b/src/base/misc_ts.cpp index 2fefa14e..558b9772 100644 --- a/src/base/misc_ts.cpp +++ b/src/base/misc_ts.cpp @@ -105,10 +105,40 @@ int main(void) { #endif +#ifdef O2SCL_NEVER_DEFINED + + // This appears not to be sufficiently platform independent, + // see + // vec_index doesn't work in older compilers, so + // we comment this out for now. + + vec_index vi; + vi.append("a1"); + vi.append("c1"); + vi.append("b1"); + t.test_gen(vi(1)==((string)"c1"),"vec_index 1"); + t.test_gen(vi[2]==((string)"b1"),"vec_index 2"); + t.test_gen(vi("a1")==0,"vec_index 3"); + t.test_gen(vi("b1")==2,"vec_index 4"); + vec_index vi2={"a1","c1","b1"}; + t.test_gen(vi2(1)==((string)"c1"),"vec_index 5"); + t.test_gen(vi2[2]==((string)"b1"),"vec_index 6"); + t.test_gen(vi2("a1")==0,"vec_index 7"); + t.test_gen(vi2("b1")==2,"vec_index 8"); + +#endif + +#ifdef O2SCL_NEVER_DEFINED + + // This appears not to be sufficiently platform independent, see + // https://github.com/awsteiner/o2scl/issues/8 for problem with + // openSUSE. vector<std::string> matches; glob_wrapper("../anneal/*.h",matches); t.test_gen(matches.size()==4,"glob test"); +#endif + t.report(); return 0; }
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor