src/tests/utils.cpp
// Check that a test name contains only letters, numbers and underscores, to
// prevent messing with directories outside test_output in runExternalTest.
Check that a test name contains only letters, numbers and underscores, to
prevent messing with directories outside test_output in runExternalTest.
Check that a test name contains only letters numbers and underscores to prevent messing with directories outside test_output in runExternalTest .
bool isValidTestName(const char* name) {
  for (const char* p = name; *p != 0; p++) {
    if (!isalnum(*p) && *p != '_') {
      return false;
    }
  }
  return true;
}
bool isValidTestName ( const char * name ) { for ( const char * p = name ; * p != 0 ; p ++ ) { if ( ! isalnum ( * p ) && * p != ' ' ) { return false ; } } return true ; }
Check that a test name contains only letters, numbers and underscores, to
prevent messing with directories outside test_output in runExternalTest.
Check that a test name contains only letters numbers and underscores to prevent messing with directories outside test_output in runExternalTest .