Merge branch 'test-ctor-dtor' into 'master'

Add tests for constructors and destructors

See merge request !169
4 jobs for master in 9 minutes and 33 seconds (queued for 2 seconds)
Status Job ID Name Coverage
  Build
passed #4157
build:linux

00:04:53

passed #4158
build:redox

00:05:45

 
  Test
failed #4160
allowed to fail
fmt

00:00:37

failed #4159
test:linux

00:03:47

 
Name Stage Failure
failed
test:linux Test
+constructor (101)
+constructor (102)
+constructor (103)
+constructor (104)
+constructor (no priority)
main
make: *** [verify] Error 1
Makefile:131: recipe for target 'verify' failed
ERROR: Job failed: exit code 1
failed
fmt Test
+            set.clear();
+ }
+ if let Some(ref mut set) = exceptfds {
+ set.clear();
+ }

for event in &events[..read] {
if event.data == TIMEOUT_TOKEN {
ERROR: Job failed: exit code 1