summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLaszlo Pandy <laszlok2@gmail.com>2011-01-17 15:09:45 +0100
committerLaszlo Pandy <laszlok2@gmail.com>2011-01-17 15:34:23 +0100
commitf86575f337c6dce9a67b606712395d83bf8bfb92 (patch)
treec2aacafb963abb5bd920a6e6adeba30b9c8cd504
parent89275d1ad513413f25100e765add3ff8335e6525 (diff)
downloadgobject-introspection-f86575f337c6dce9a67b606712395d83bf8bfb92.tar.gz
Add a second enum to GIMarshallingTests to support pygi tests for non-gtype enums.
There was a bug in pygi in which non-gtype enums shared values between themselves. That is, if there was an attribute Enum.THE_VALUE, it would be available on as OtherEnum.THE_VALUE as well. To make a test case for this bug, we need a second non-gtype enum in GIMarshallingTests to compare with.
-rw-r--r--tests/gimarshallingtests.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/tests/gimarshallingtests.h b/tests/gimarshallingtests.h
index 0d1763ef..d15478f6 100644
--- a/tests/gimarshallingtests.h
+++ b/tests/gimarshallingtests.h
@@ -423,6 +423,12 @@ typedef enum
GI_MARSHALLING_TESTS_ENUM_VALUE3 = 42
} GIMarshallingTestsEnum;
+typedef enum
+{
+ GI_MARSHALLING_TESTS_SECOND_ENUM_SECONDVALUE1,
+ GI_MARSHALLING_TESTS_SECOND_ENUM_SECONDVALUE2,
+} GIMarshallingTestsSecondEnum;
+
GIMarshallingTestsEnum gi_marshalling_tests_enum_returnv (void);
void gi_marshalling_tests_enum_in (GIMarshallingTestsEnum enum_);