@Test
public void noErrorStringAllowedInCustomReduction() throws Exception {

  try {
    GlslReduce.mainHelper(new String[]{"--error-string", "some_string",
        makeShaderJobAndReturnJsonFilename(), "--reduction-kind", "CUSTOM", "--output",
        temporaryFolder.getRoot().getAbsolutePath()}, null);
    assertTrue(false);
  } catch (RuntimeException exception) {
    checkOptionNotAllowed(exception, "error-string");
  }
}