zephyr/samples/microkernel/test/test_secure_string_api
Yonattan Louise 63e3a4e772 Fix checkpatch issue - ERROR:ELSE_AFTER_BRACE
The 'else' statement should be in the same line that the
close brace of the 'if' statement. E.g.:

	if (condition) {
		do_this();
		do_that();
	} else {
		otherwise();
	}

This commit fixed this kind of error using the following script:

	#!/bin/bash

	for file in $(find ./ -name "*.[ch]" ! -path "./scripts/*" ! -path "./host/src/wrsconfig/*");
	do
		if [ ! -h $file ];
		then
			sed -i '/^[ \t]*}$/ {
	:review_next_one_too
	N
	s/^\(.*\)\n[ \t]*else/\1 else/
	/}$/ b review_next_one_too
	}' $file;

		fi;
	done

Change-Id: I7e811a572d735fa08e84850055ebbde29eb10e8d
Signed-off-by: Yonattan Louise <yonattan.a.louise.mendoza@intel.com>
2016-02-05 20:13:59 -05:00
..
src Fix checkpatch issue - ERROR:ELSE_AFTER_BRACE 2016-02-05 20:13:59 -05:00
Makefile First commit 2015-04-10 16:44:37 -07:00
prj_arm.conf First commit 2015-04-10 16:44:37 -07:00
prj_x86.conf First commit 2015-04-10 16:44:37 -07:00
prj.vpf First commit 2015-04-10 16:44:37 -07:00
README.txt Remove references to Simics from README.txt files 2016-02-05 20:13:48 -05:00

Title: test_secure_string_api

Desription:

This test verifies that the microkernel secure string APIs operate as expected.

--------------------------------------------------------------------------------

Building and Running Project:

This microkernel project outputs to the console.  It can be built and executed
on QEMU as follows:

    make pristine
    make microkernel.qemu

--------------------------------------------------------------------------------

Sample Output:

**** Invalid string operation! ****
Current context ID = 0x0010583c
Faulting instruction address = 0xdeaddead
Fatal task error! Aborting task.
**** Invalid string operation! ****
Current context ID = 0x0010563c
Faulting instruction address = 0xdeaddead
Fatal task error! Aborting task.
As expected, test task 1 did not continue operating
after calling memcpy_s with incorrect parameters
As expected, test task 2 did not continue operating
after calling strcpy_s with incorrect parameters
===================================================================
PASS - MainTask.
===================================================================
VXMICRO PROJECT EXECUTION SUCCESSFUL