fix(pty): remove non-portable signal enums

Remove signal enum members which do not use portable numbers, and
therefore may be different on different operating systems.
This commit is contained in:
Leroy Hopson 2024-03-03 18:12:25 +13:00
parent b78bdf3136
commit 7f03761fb2
No known key found for this signature in database
GPG key ID: D2747312A6DB51AA
3 changed files with 0 additions and 7 deletions

View file

@ -37,12 +37,9 @@ void PTY::_bind_methods() {
BIND_ENUM_CONSTANT(SIGNAL_SIGILL);
BIND_ENUM_CONSTANT(SIGNAL_SIGTRAP);
BIND_ENUM_CONSTANT(SIGNAL_SIGABRT);
BIND_ENUM_CONSTANT(SIGNAL_SIGBUS);
BIND_ENUM_CONSTANT(SIGNAL_SIGFPE);
BIND_ENUM_CONSTANT(SIGNAL_SIGKILL);
BIND_ENUM_CONSTANT(SIGNAL_SIGUSR1);
BIND_ENUM_CONSTANT(SIGNAL_SIGSEGV);
BIND_ENUM_CONSTANT(SIGNAL_SIGUSR2);
BIND_ENUM_CONSTANT(SIGNAL_SIGPIPE);
BIND_ENUM_CONSTANT(SIGNAL_SIGALRM);
BIND_ENUM_CONSTANT(SIGNAL_SIGTERM);

View file

@ -24,12 +24,9 @@ namespace godot
SIGNAL_SIGILL = 4,
SIGNAL_SIGTRAP = 5,
SIGNAL_SIGABRT = 6,
SIGNAL_SIGBUS = 7,
SIGNAL_SIGFPE = 8,
SIGNAL_SIGKILL = 9,
SIGNAL_SIGUSR1 = 10,
SIGNAL_SIGSEGV = 11,
SIGNAL_SIGUSR2 = 12,
SIGNAL_SIGPIPE = 13,
SIGNAL_SIGALRM = 14,
SIGNAL_SIGTERM = 15,

View file

@ -66,7 +66,6 @@ class TestInterface:
# Enums.
# Added SIGNAL_ prefix to name.
func test_has_enum_signal():
assert_eq(described_class.SIGNAL_SIGHUP, 1)
assert_eq(described_class.SIGNAL_SIGINT, 2)