improve coverage
* tests/core/acc.cc: here * tests/core/acc.test: fix test invokation
This commit is contained in:
parent
6f057941ce
commit
65a56f4cef
2 changed files with 27 additions and 3 deletions
|
|
@ -186,7 +186,31 @@ int main()
|
|||
}
|
||||
catch (const std::runtime_error& e)
|
||||
{
|
||||
return std::strcmp(e.what(), "Too many acceptance sets used.");
|
||||
if (std::strcmp(e.what(), "Too many acceptance sets used."))
|
||||
return 1;
|
||||
}
|
||||
return 1;
|
||||
|
||||
try
|
||||
{
|
||||
spot::acc_cond::mark_t m{0};
|
||||
m <<= SPOT_NB_ACC + 1;
|
||||
}
|
||||
catch (const std::runtime_error& e)
|
||||
{
|
||||
if (std::strcmp(e.what(), "bit shift overflow is undefined behavior"))
|
||||
return 1;
|
||||
}
|
||||
|
||||
try
|
||||
{
|
||||
spot::acc_cond::mark_t m{0};
|
||||
m >>= SPOT_NB_ACC + 1;
|
||||
}
|
||||
catch (const std::runtime_error& e)
|
||||
{
|
||||
if (std::strcmp(e.what(), "bit shift overflow is undefined behavior"))
|
||||
return 1;
|
||||
}
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -87,5 +87,5 @@ Inf(2) & Fin(2)
|
|||
(Fin(0)|Fin(3)) | (Inf(1) & Fin(2))
|
||||
EOF
|
||||
|
||||
run 0 ../acc | tee stdout
|
||||
run 0 ../acc > stdout
|
||||
diff stdout expect
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue