This patch ensures that async_handler and async_handler_jk runs by
default.
Also the profile/default is updated to reflect the same.

Signed-Off-By: Chirag <[EMAIL PROTECTED]>

func/async_handler/run_auto.sh |   15 +++++++++++++++
profiles/default               |    7 +++++--
2 files changed, 20 insertions(+), 2 deletions(-)

diff --git a/testcases/realtime/func/async_handler/run_auto.sh 
b/testcases/realtime/func/async_handler/run_auto.sh
new file mode 100755
index 0000000..b3432b8
--- /dev/null
+++ b/testcases/realtime/func/async_handler/run_auto.sh
@@ -0,0 +1,15 @@
+#! /bin/bash
+
+profile=${1:-default}
+
+cd $(dirname $0) # Move to test directory
+if [ ! $SCRIPTS_DIR ]; then
+        # assume we're running standalone
+        export SCRIPTS_DIR=../../scripts/
+fi
+
+source $SCRIPTS_DIR/setenv.sh
+
+# Warning: tests args are now set in profiles
+$SCRIPTS_DIR/run_c_files.sh $profile async_handler async_handler_jk
+
diff --git a/testcases/realtime/profiles/default 
b/testcases/realtime/profiles/default
index 9fb7085..6ffa0ff 100644
--- a/testcases/realtime/profiles/default
+++ b/testcases/realtime/profiles/default
@@ -16,7 +16,11 @@
 # for local or global runs (<RT_TESTS_ROOT>/run.sh or <TESTDIR>/run_auto.sh)
 #
 
-
+# Pass if maximum time for signaled thread to be scheduled is less 
+# than threshold (us).
+# Default threshold=100 us
+func/async_handler             async_handler -c 100
+func/async_handler             async_handler_jk -c 100
 # Pass if maximum lock time is less than threshold (us).
 # Default threshold=200 us
 func/pi_perf                   pi_perf -c 200
@@ -42,7 +46,6 @@ func/matrix_mult              matrix_mult -c 0.75
 # Default maxduration=0.5 s
 func/thread_clock              tc-2 -c 0.5
 
-
 # The below tests have no pass/fail criterium.
 func/gtod_latency              gtod_latency
 func/sched_jitter              sched_jitter

-- 
Cheers,
Chirag Jog


-------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php
_______________________________________________
Ltp-list mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/ltp-list

Reply via email to