diff options
author | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2019-08-28 14:59:16 +0200 |
---|---|---|
committer | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2019-08-28 15:22:27 +0200 |
commit | 807ea677b298ed13796d27c493c726c0bfe6e036 (patch) | |
tree | 8763ba36454360a2640943f59739f849398208ec /testsuites | |
parent | record: Add variants for critical sections (diff) | |
download | rtems-807ea677b298ed13796d27c493c726c0bfe6e036.tar.bz2 |
score: Add RTEMS_RETURN_ADDRESS()
Diffstat (limited to 'testsuites')
-rw-r--r-- | testsuites/sptests/spmisc01/init.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/testsuites/sptests/spmisc01/init.c b/testsuites/sptests/spmisc01/init.c index d179e1239c..9090069973 100644 --- a/testsuites/sptests/spmisc01/init.c +++ b/testsuites/sptests/spmisc01/init.c @@ -1,5 +1,5 @@ /* - * Copyright (c) 2018 embedded brains GmbH. All rights reserved. + * Copyright (C) 2018, 2019 embedded brains GmbH * * embedded brains GmbH * Dornierstr. 4 @@ -192,6 +192,8 @@ static int concat(void) static void Init(rtems_task_argument arg) { + void *p; + TEST_BEGIN(); rtems_test_assert(inline_func() == 7); RTEMS_COMPILER_MEMORY_BARRIER(); @@ -260,6 +262,9 @@ static void Init(rtems_task_argument arg) rtems_test_assert(true); } + p = RTEMS_RETURN_ADDRESS(); + (void) p; + TEST_END(); rtems_test_exit(0); } |