Skip to content

Commit 20811e3

Browse files
ofxTests: ensure std::string a = ofToDataPath("") on windows
1 parent 0e990ab commit 20811e3

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

tests/utils/fileUtils/src/main.cpp

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -185,10 +185,9 @@ class ofApp: public ofxUnitTestsApp{
185185

186186
ofxTest(std::filesystem::exists(ofFile("test.txt")), "ofFile cast to filesystem::path");
187187
ofxTest(std::filesystem::exists(ofDirectory("d1")), "ofDirectory cast to filesystem::path");
188-
189-
190-
191-
188+
189+
std::string narrow = ofToDataPath("");
190+
ofxTest(std::filesystem::exists(narrow), "narrow paths on windows");
192191

193192
//========================================================================
194193
ofLogNotice() << "";
@@ -289,4 +288,4 @@ int main( ){
289288
auto app = std::make_shared<ofApp>();
290289
ofRunApp(window, app);
291290
return ofRunMainLoop();
292-
}
291+
}

0 commit comments

Comments
 (0)