mirror of
https://github.com/tesseract-ocr/tesseract.git
synced 2025-01-21 00:20:45 +08:00
[test] Fix mkdir on unix in dawg test.
This commit is contained in:
parent
38ffaf60f3
commit
dc9bfde8ec
@ -73,7 +73,11 @@ class DawgTest : public testing::Test {
|
||||
std::string orig_wordlist = file::JoinPath(TESTING_DIR, wordlist_filename);
|
||||
std::string output_dawg = OutputNameToPath(wordlist_filename + ".dawg");
|
||||
std::string output_wordlist = OutputNameToPath(wordlist_filename);
|
||||
mkdir(FLAGS_test_tmpdir);
|
||||
#if defined(_WIN32)
|
||||
_mkdir(FLAGS_test_tmpdir);
|
||||
#else
|
||||
mkdir(FLAGS_test_tmpdir, S_IRWXU | S_IRWXG);
|
||||
#endif
|
||||
LoadWordlist(orig_wordlist, &orig_words);
|
||||
EXPECT_EQ(
|
||||
RunCommand(wordlist2dawg_prog, orig_wordlist, output_dawg, unicharset), 0);
|
||||
|
Loading…
Reference in New Issue
Block a user