SDL: Allow running tests with the dummy video driver

From 7df721d4e92a9c6b63d5172bb890ecd9f93fdb48 Mon Sep 17 00:00:00 2001
From: Sam Lantinga <[EMAIL REDACTED]>
Date: Tue, 25 Jul 2023 12:07:45 -0700
Subject: [PATCH] Allow running tests with the dummy video driver

---
 src/test/SDL_test_common.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/src/test/SDL_test_common.c b/src/test/SDL_test_common.c
index 8781cc57457c..c046f7c3b8f0 100644
--- a/src/test/SDL_test_common.c
+++ b/src/test/SDL_test_common.c
@@ -134,6 +134,7 @@ int SDLTest_CommonArg(SDLTest_CommonState *state, int index)
             return -1;
         }
         state->videodriver = argv[index];
+        SDL_SetHint(SDL_HINT_VIDEODRIVER, state->videodriver);
         return 2;
     }
     if (SDL_strcasecmp(argv[index], "--renderer") == 0) {