tests: Fix a typo in the constructor test

There is no `G_HAS_DESTRUCTORS` `#define` and there never has been: the
presence of destructors is indicated by `G_HAS_CONSTRUCTORS` (one is
never supported without the other).

Spotted by `-Wundef`.

Signed-off-by: Philip Withnall <pwithnall@gnome.org>
This commit is contained in:
Philip Withnall
2025-04-10 12:23:31 +01:00
parent 2883612379
commit f0cc5ba344

View File

@@ -215,7 +215,7 @@ test_lib (gconstpointer data)
/* Destructors */
unload_library ();
#if G_HAS_DESTRUCTORS
#if G_HAS_CONSTRUCTORS
/* Destructors in dynamically-loaded libraries do not
* necessarily run on dlclose. On some systems dlclose
* is effectively a no-op (e.g with the Musl LibC) and