]> de.git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/blobdiff - qcsrc/lib/test.qc
Merge remote-tracking branch 'origin/terencehill/count_fill_optimization'
[xonotic/xonotic-data.pk3dir.git] / qcsrc / lib / test.qc
index 41e1f294ae4c7eb0fc48684490e02615eba4c9e7..0997e53a4964fe1657c045ce01f4f698f1a7259b 100644 (file)
@@ -22,7 +22,8 @@ bool TEST_Run(string s)
        TEST_failed = 0;
        TEST_fatal = 0;
        TEST_ok = false;
-       callfunction(strcat("_TEST_", s));
+       string fn = strcat("_TEST_", s);
+       if (isfunction(fn)) callfunction(fn);
        if (TEST_failed > 0)
        {
                LOG_INFOF("%s: %d items failed.\n", s, TEST_failed);