aboutsummaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authordec05eba <dec05eba@protonmail.com>2018-10-01 15:01:39 +0200
committerdec05eba <dec05eba@protonmail.com>2020-07-06 07:39:33 +0200
commit88effd4a0d63e37a2851712f63a9709a1e322946 (patch)
tree8a6334a870f56afb5bf76c32d0bd202de694995c /tests
parent69c7ec31219d666bba4f053fcce07d4df58b8ba2 (diff)
Fix sibs not finding test code in subdirs of test dir
Fix platform specific configs, not all configs were checked
Diffstat (limited to 'tests')
-rw-r--r--tests/src/confTest/confTest.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/src/confTest/confTest.cpp b/tests/src/confTest/confTest.cpp
index 100c7cf..b5d5ae1 100644
--- a/tests/src/confTest/confTest.cpp
+++ b/tests/src/confTest/confTest.cpp
@@ -61,7 +61,7 @@ TEST_CASE("parse config - invalid object")
SibsConfig sibsConfig(Compiler::GCC, TINYDIR_STRING("tests/src/confTest"), OPT_LEV_DEBUG, false);
Result<bool> result = Config::readFromFile(TINYDIR_STRING("tests/src/confTest/invalidObject.conf"), sibsConfig);
REQUIRE(result.isErr());
- REQUIRE(result.getErrMsg() == "Invalid config object \"invalidObj\"");
+ REQUIRE(result.getErrMsg().find("Invalid config object \"invalidObj\"") != std::string::npos);
}
TEST_CASE("parse config - invalid field")
@@ -69,7 +69,7 @@ TEST_CASE("parse config - invalid field")
SibsConfig sibsConfig(Compiler::GCC, TINYDIR_STRING("tests/src/confTest"), OPT_LEV_DEBUG, false);
Result<bool> result = Config::readFromFile(TINYDIR_STRING("tests/src/confTest/invalidField.conf"), sibsConfig);
REQUIRE(result.isErr());
- REQUIRE(result.getErrMsg() == "Invalid field \"invalidField\" under object \"package\"");
+ REQUIRE(result.getErrMsg().find("Invalid field \"invalidField\" under object \"package\"") != std::string::npos);
}
TEST_CASE("parse config - use different config for different platforms")