test: improve test-fs-open-flags
- use arrow funcion instead of function expression
- add second argumento to method assert.throws
- check error messages from beginning to the end using ^ and $
Checklist
-
make -j4 test
(UNIX) -
commit message follows commit guidelines
Affected core subsystem(s)
test