commit | b6854d0cbcfda7034bfd70027b57c7353a62e1af | [log] [tgz] |
---|---|---|
author | Daniel Leung <daniel.leung@intel.com> | Thu Jan 20 15:16:27 2022 -0800 |
committer | Anas Nashif <anas.nashif@intel.com> | Tue Jan 25 21:16:32 2022 -0500 |
tree | 82f718a0610a70368304f0ce1739906eef162e36 | |
parent | deeb98da5328c6fbdfc4ad1c7638a205d86f83e7 [diff] |
tests: condvar_api: fix empty loop error for XCC When building with XCC, the for loop to call k_therad_access_grant() is an empty loop because k_thread_access_grant() does nothing if no building for userspace. XCC does not like this and emits error: main.s: Assembler messages: main.s:1951: Error: invalid empty loop So add #ifdef to only enable the loop if userspace is enabled. Signed-off-by: Daniel Leung <daniel.leung@intel.com>