#20 add soem debug info

pull/32/head
Geoffrey Merck 4 years ago
parent 7fad5bfbc3
commit ee4270940d

10
.vscode/tasks.json vendored

@ -26,10 +26,7 @@
"USE_GPSD=1", "USE_GPSD=1",
"DStarGateway/dstargateway" "DStarGateway/dstargateway"
], ],
"group": { "group": "build",
"kind": "build",
"isDefault": true
},
"problemMatcher": [] "problemMatcher": []
}, },
{ {
@ -94,7 +91,10 @@
"ENABLE_DEBUG=1", "ENABLE_DEBUG=1",
"USE_GPSD=1" "USE_GPSD=1"
], ],
"group": "build", "group": {
"kind": "build",
"isDefault": true
},
"problemMatcher": [] "problemMatcher": []
} }
] ]

@ -21,6 +21,7 @@
#include <string> #include <string>
#include "AMBEFileReader.h" #include "AMBEFileReader.h"
#include "Log.h"
namespace AMBEFileReaderTests namespace AMBEFileReaderTests
{ {
@ -55,6 +56,10 @@ namespace AMBEFileReaderTests
{ {
std::string indexFile = std::string(std::filesystem::current_path()) + "/Tests/AMBEFileReader/fr_FR.indx"; std::string indexFile = std::string(std::filesystem::current_path()) + "/Tests/AMBEFileReader/fr_FR.indx";
std::string ambeFile = std::string(std::filesystem::current_path()) + "/Tests/AMBEFileReader/fr_FR.ambe"; std::string ambeFile = std::string(std::filesystem::current_path()) + "/Tests/AMBEFileReader/fr_FR.ambe";
CLog::logInfo("Reading file: %s", indexFile.c_str());
CLog::logInfo("Reading file: %s", ambeFile.c_str());
CAMBEFileReader reader(indexFile, ambeFile); CAMBEFileReader reader(indexFile, ambeFile);
bool res = reader.read(); bool res = reader.read();
EXPECT_TRUE(res) << "read shall return true on existent files"; EXPECT_TRUE(res) << "read shall return true on existent files";

Loading…
Cancel
Save

Powered by TurnKey Linux.