diff options
Diffstat (limited to 'tests/test_main.cpp')
-rw-r--r-- | tests/test_main.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/tests/test_main.cpp b/tests/test_main.cpp index 1c9535174b..d41581883a 100644 --- a/tests/test_main.cpp +++ b/tests/test_main.cpp @@ -37,6 +37,7 @@ #include "test_class_db.h" #include "test_color.h" #include "test_expression.h" +#include "test_gdnative_string.h" #include "test_gradient.h" #include "test_gui.h" #include "test_math.h" @@ -86,8 +87,9 @@ int test_main(int argc, char *argv[]) { // Clean arguments of "--test" from the args. for (int x = 0; x < argc; x++) { - if (strncmp(argv[x], "--test", 6) != 0) { - test_args.push_back(String(argv[x])); + String arg = String(argv[x]); + if (arg != "--test") { + test_args.push_back(arg); } } // Convert Godot command line arguments back to standard arguments. |