summaryrefslogtreecommitdiff
path: root/test/signal.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'test/signal.cpp')
-rw-r--r--test/signal.cpp12
1 files changed, 12 insertions, 0 deletions
diff --git a/test/signal.cpp b/test/signal.cpp
index 19a52c60..79668b42 100644
--- a/test/signal.cpp
+++ b/test/signal.cpp
@@ -176,6 +176,18 @@ protected:
delete signal;
delete slotObject;
+ /* Exercise the Object slot code paths. */
+ slotObject = new SlotObject();
+ signalVoid_.connect(slotObject, &SlotObject::slot);
+ valueStatic_ = 0;
+ signalVoid_.emit();
+ if (valueStatic_ == 0) {
+ cout << "Signal delivery for Object test failed" << endl;
+ return TestFail;
+ }
+
+ delete slotObject;
+
return TestPass;
}